From 0163c1291aaae8eab78372a15320fe441c0a94eb Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Tue, 9 May 2023 17:06:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E4=B8=80=E4=B8=8B=E4=BF=9D?= =?UTF-8?q?=E7=95=99=E5=AE=8C=E6=95=B4=E4=BF=A1=E6=81=AF=E5=88=B0lastdir.t?= =?UTF-8?q?xt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/open_agb_firm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }