mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-09 15:19:26 +01:00
prevent cheat name overflow
This commit is contained in:
parent
a8c062142a
commit
9fb8c25387
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user