mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-09 23:29:25 +01:00
cleanup more warnings
This commit is contained in:
parent
92e5513892
commit
3629710c72
@ -42,7 +42,7 @@ bool SaveState (char * filepath, bool silent)
|
|||||||
char screenpath[1024];
|
char screenpath[1024];
|
||||||
strncpy(screenpath, filepath, 1024);
|
strncpy(screenpath, filepath, 1024);
|
||||||
screenpath[strlen(screenpath)-4] = 0;
|
screenpath[strlen(screenpath)-4] = 0;
|
||||||
sprintf(screenpath, "%s.png", screenpath);
|
strcat(screenpath, ".png");
|
||||||
SaveFile((char *)gameScreenPng, screenpath, gameScreenPngSize, silent);
|
SaveFile((char *)gameScreenPng, screenpath, gameScreenPngSize, silent);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -125,7 +125,7 @@ bool SavePreviewImg (char * filepath, bool silent)
|
|||||||
char screenpath[1024];
|
char screenpath[1024];
|
||||||
strncpy(screenpath, filepath, 1024);
|
strncpy(screenpath, filepath, 1024);
|
||||||
screenpath[strlen(screenpath)] = 0;
|
screenpath[strlen(screenpath)] = 0;
|
||||||
sprintf(screenpath, "%s.png", screenpath);
|
strcat(screenpath, ".png");
|
||||||
SaveFile((char *)gameScreenPng, screenpath, gameScreenPngSize, silent);
|
SaveFile((char *)gameScreenPng, screenpath, gameScreenPngSize, silent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -237,7 +237,7 @@ int UpdateDirName()
|
|||||||
if ((strlen(browser.dir)+1+strlen(browserList[browser.selIndex].filename)) < MAXPATHLEN)
|
if ((strlen(browser.dir)+1+strlen(browserList[browser.selIndex].filename)) < MAXPATHLEN)
|
||||||
{
|
{
|
||||||
/* update current directory name */
|
/* update current directory name */
|
||||||
sprintf(browser.dir, "%s%s/",browser.dir, browserList[browser.selIndex].filename);
|
sprintf(browser.dir+strlen(browser.dir), "%s/", browserList[browser.selIndex].filename);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user