Further protect against overlapping string copy by checking if pointers are different... just to be sure it is safe.
This commit is contained in:
parent
26f623f5ea
commit
b9385118bd
|
@ -807,7 +807,10 @@ static EMUFILE *openRecordingMovie(const char* fname)
|
|||
FCEU_PrintError("Error opening movie output file: %s", fname);
|
||||
return NULL;
|
||||
}
|
||||
if ( fname != curMovieFilename.c_str() )
|
||||
{
|
||||
curMovieFilename.assign(fname);
|
||||
}
|
||||
|
||||
return osRecordingMovie;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue