Bug fix for stack buffer overflow on mac osx.

This commit is contained in:
mjbudd77 2021-06-25 12:04:18 -04:00
parent 42fd7b1894
commit 941da60ecb
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ int fceuExecutablePath( char *outputPath, int outputSize )
if ( result == 0 )
{
char *dir;
exePath[ bufSize ] = 0;
exePath[ sizeof(exePath)-1 ] = 0;
//printf("EXE Path: '%s' \n", exePath );
dir = ::dirname( exePath );