all repos — mgba @ 26e9e8d63ffab9b6d2cc3c83d8ed1c758eba6496

mGBA Game Boy Advance Emulator

GBA Cheats: Remove trailing newline
Jeffrey Pfau jeffrey@endrift.com
Sun, 24 Jan 2016 17:50:18 -0800
commit

26e9e8d63ffab9b6d2cc3c83d8ed1c758eba6496

parent

e436f2a7276d162dd2cd9b2f4686108820ae77b7

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/gba/cheats.csrc/gba/cheats.c

@@ -265,6 +265,7 @@ case '#':

do { ++i; } while (isspace((int) cheat[i])); + cheat[strlen(cheat) - 1] = '\0'; // Remove trailing newline newSet = malloc(sizeof(*set)); GBACheatSetInit(newSet, &cheat[i]); newSet->enabled = !nextDisabled;