修改写入长度

This commit is contained in:
anod 2023-05-09 17:09:24 +08:00
parent 0163c1291a
commit e43a99feaa

View File

@ -814,7 +814,7 @@ static Result showFileBrowser(char romAndSavePath[512])
{ {
strncpy(lastDir, romAndSavePath, cmpLen); strncpy(lastDir, romAndSavePath, cmpLen);
lastDir[cmpLen] = '\n'; lastDir[cmpLen] = '\n';
res = fsQuickWrite("lastdir.txt", lastDir, cmpLen + 1); res = fsQuickWrite("lastdir.txt", lastDir, strlen(lastDir));
} }
} }
} while(0); } while(0);