prevent cheat name overflow

This commit is contained in:
Daryl 2020-05-12 20:55:48 -06:00
parent 879b99ff82
commit 77708edcc1

View File

@ -2197,7 +2197,7 @@ static int MenuGameCheats()
for(i=0; i < Cheat.g.size(); i++)
{
sprintf (options.name[i], "%s", Cheat.g[i].name);
snprintf (options.name[i], 50, "%s", Cheat.g[i].name);
sprintf (options.value[i], "%s", Cheat.g[i].enabled == true ? "On" : "Off");
}