newer compilers are stricter about this, as well as asan
{
char file[MAXPATHLEN] = "";
char path[MAXPATHLEN];
+ char isofilename[MAXPATHLEN];
const char *cdfile = NULL;
const char *loadst_f = NULL;
int psxout = 0;
SysPrintf("Using config file %s.\n", cfgfile_basename);
}
else if (!strcmp(argv[i], "-cdfile")) {
- char isofilename[MAXPATHLEN];
-
if (i+1 >= argc) break;
strncpy(isofilename, argv[++i], MAXPATHLEN);
if (isofilename[0] != '/') {