mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-06 13:54:09 +08:00
修改写入长度
This commit is contained in:
parent
0163c1291a
commit
e43a99feaa
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user