Bug fix for stack buffer overflow on mac osx.
This commit is contained in:
parent
42fd7b1894
commit
941da60ecb
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue