GBA Cheats: Remove trailing newline

This commit is contained in:
Jeffrey Pfau 2016-01-24 17:50:18 -08:00
parent e436f2a727
commit 26e9e8d63f
1 changed files with 1 additions and 0 deletions

View File

@ -265,6 +265,7 @@ bool GBACheatParseFile(struct GBACheatDevice* device, struct VFile* vf) {
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;