Skip to content

Commit 941da60

Browse files
committed
Bug fix for stack buffer overflow on mac osx.
1 parent 42fd7b1 commit 941da60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/drivers/Qt/ConsoleUtilities.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ int fceuExecutablePath( char *outputPath, int outputSize )
273273
if ( result == 0 )
274274
{
275275
char *dir;
276-
exePath[ bufSize ] = 0;
276+
exePath[ sizeof(exePath)-1 ] = 0;
277277
//printf("EXE Path: '%s' \n", exePath );
278278

279279
dir = ::dirname( exePath );

0 commit comments

Comments
 (0)