mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-05 10:52:15 +02:00
Always send buffer of size FS_MAX_PATH in fsOpenFileSystemWithId
This commit is contained in:
parent
aa0a8e8c6c
commit
18a841c850
@ -431,9 +431,13 @@ Result fsOpenFileSystem(FsFileSystem* out, u64 titleId, FsFileSystemType fsType)
|
|||||||
}
|
}
|
||||||
|
|
||||||
Result fsOpenFileSystemWithId(FsFileSystem* out, u64 titleId, FsFileSystemType fsType, const char* contentPath) {
|
Result fsOpenFileSystemWithId(FsFileSystem* out, u64 titleId, FsFileSystemType fsType, const char* contentPath) {
|
||||||
|
char sendStr[FS_MAX_PATH];
|
||||||
|
strncpy(sendStr, contentPath, sizeof(sendStr));
|
||||||
|
sendStr[sizeof(sendStr)-1] = 0;
|
||||||
|
|
||||||
IpcCommand c;
|
IpcCommand c;
|
||||||
ipcInitialize(&c);
|
ipcInitialize(&c);
|
||||||
ipcAddSendStatic(&c, contentPath, strlen(contentPath)+1, 0);
|
ipcAddSendStatic(&c, sendStr, sizeof(sendStr), 0);
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u64 magic;
|
u64 magic;
|
||||||
|
Loading…
Reference in New Issue
Block a user