diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c index 0a5f86b..90aa498 100644 --- a/source/arm11/open_agb_firm.c +++ b/source/arm11/open_agb_firm.c @@ -813,7 +813,7 @@ static Result showFileBrowser(char romAndSavePath[512]) if(cmpLen < strlen(lastDir) || strncmp(lastDir, romAndSavePath, cmpLen) != 0) { strncpy(lastDir, romAndSavePath, cmpLen); - lastDir[cmpLen] = '\0'; + lastDir[cmpLen] = '\n'; res = fsQuickWrite("lastdir.txt", lastDir, cmpLen + 1); } }