Use correct byte limit

This commit is contained in:
OV2 2018-07-03 20:43:55 +02:00
parent 843c46053f
commit 170f90aa21
1 changed files with 1 additions and 1 deletions

View File

@ -788,7 +788,7 @@ static bool8 S9xLoadCheatFileClassic (const char *filename)
memcpy (name, &data[8], 20); memcpy (name, &data[8], 20);
name[20] = 0; name[20] = 0;
snprintf (cheat, 21, "%x=%x", c.address, c.byte); snprintf (cheat, 10, "%x=%x", c.address, c.byte);
S9xAddCheatGroup (name, cheat); S9xAddCheatGroup (name, cheat);
if (c.enabled) if (c.enabled)