From 170f90aa21f8bd8eb9210d997a2e81e17bba1572 Mon Sep 17 00:00:00 2001 From: OV2 Date: Tue, 3 Jul 2018 20:43:55 +0200 Subject: [PATCH] Use correct byte limit --- cheats2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheats2.cpp b/cheats2.cpp index 7a735292..777efb37 100644 --- a/cheats2.cpp +++ b/cheats2.cpp @@ -788,7 +788,7 @@ static bool8 S9xLoadCheatFileClassic (const char *filename) memcpy (name, &data[8], 20); name[20] = 0; - snprintf (cheat, 21, "%x=%x", c.address, c.byte); + snprintf (cheat, 10, "%x=%x", c.address, c.byte); S9xAddCheatGroup (name, cheat); if (c.enabled)