GBA Cheats: Remove trailing newline
Jeffrey Pfau jeffrey@endrift.com
Sun, 24 Jan 2016 17:50:18 -0800
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/gba/cheats.c
→
src/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;