mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-12-24 18:21:50 +01:00
prevent cheat name overflow
This commit is contained in:
parent
879b99ff82
commit
77708edcc1
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user