allocate enough space for NUL, and do not try to open an empty file string
This commit is contained in:
@@ -172,7 +172,10 @@ void FCEUD_VideoChanged (void)
|
||||
|
||||
FILE *FCEUD_UTF8fopen(const char *n, const char *m)
|
||||
{
|
||||
return fopen(n, m);
|
||||
if (n)
|
||||
return fopen(n, m);
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#define MAX_PATH 1024
|
||||
|
||||
Reference in New Issue
Block a user