mirror of
https://github.com/dborth/snes9xgx.git
synced 2025-01-12 11:19:07 +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++)
|
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");
|
sprintf (options.value[i], "%s", Cheat.g[i].enabled == true ? "On" : "Off");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user