Skip to content

Commit

Permalink
Bug fix for stack buffer overflow on mac osx.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbudd77 committed Jun 25, 2021
1 parent 42fd7b1 commit 941da60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/Qt/ConsoleUtilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 941da60

Please sign in to comment.