From 3bc7b725391c4c20144ad6ee5137e3965f1b06a6 Mon Sep 17 00:00:00 2001 From: dinkc64 Date: Thu, 14 Nov 2024 01:56:42 -0500 Subject: [PATCH] snes cheat, oops --- src/burn/drv/snes/snes.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/burn/drv/snes/snes.cpp b/src/burn/drv/snes/snes.cpp index 1ed725def3..82757c3d9c 100644 --- a/src/burn/drv/snes/snes.cpp +++ b/src/burn/drv/snes/snes.cpp @@ -719,6 +719,7 @@ static void snes_add_cheat(char *code) if (!gg_decode(code, address, value) && cheats_active < (cheat_MAX-1)) { strncpy(cheats[cheats_active].code, code, 9); + cheats[cheats_active].code[9] = '\0'; cheats[cheats_active].address = address; cheats[cheats_active].value = value; bprintf(0, _T("cheat #%d (%S) added. (%x, %x)\n"), cheats_active, cheats[cheats_active].code, address, value);