Fixed the cheat list size check.

This commit is contained in:
skidau 2015-05-21 07:42:14 +00:00
parent 1b60856e8d
commit 45c8b6a3d6
1 changed files with 1 additions and 1 deletions

View File

@ -2747,7 +2747,7 @@ bool cheatsLoadCheatList(const char *file)
}
if (type == 1)
{
if(fread(cheatsList, 1, sizeof(cheatsList), f) != sizeof(cheatsList)) {
if(fread(cheatsList, 1, sizeof(cheatsList), f) > sizeof(cheatsList)) {
fclose(f);
return false;
}