From 9fb8c25387dc47903e87b3c6a9532b1b65ca6899 Mon Sep 17 00:00:00 2001 From: Daryl Date: Tue, 12 May 2020 20:55:02 -0600 Subject: [PATCH] prevent cheat name overflow --- source/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/menu.cpp b/source/menu.cpp index 01c64ec..57c1986 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -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"); }