prevent cheat name overflow

This commit is contained in:
Daryl 2020-05-12 20:55:02 -06:00
parent a8c062142a
commit 9fb8c25387

View File

@ -2195,7 +2195,7 @@ static int MenuGameCheats()
if(!FCEUI_GetCheat(i,&name,NULL,NULL,NULL,&status,NULL))
break;
snprintf (options.name[i], 300, "%s", name);
snprintf (options.name[i], 100, "%s", name);
sprintf (options.value[i], status ? "On" : "Off");
}