Skip to content

Commit

Permalink
Use correct byte limit
Browse files Browse the repository at this point in the history
  • Loading branch information
OV2 committed Jul 3, 2018
1 parent 843c460 commit 170f90a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cheats2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 170f90a

Please sign in to comment.