|
|
cardPath=path.c_str();
You are copying a pointer of a temporary, use strcpy to copy cstrings.cardPath=path.c_str(); You are copying a pointer of a temporary, use strcpy to copy cstrings.EDIT: And allocate memory to cardPath. (or just use std::strings) |