diff --git a/nx/source/services/fs.c b/nx/source/services/fs.c index ebf4a37b..fbfed5e5 100644 --- a/nx/source/services/fs.c +++ b/nx/source/services/fs.c @@ -432,7 +432,7 @@ Result fsOpenFileSystem(FsFileSystem* out, u64 titleId, FsFileSystemType fsType) Result fsOpenFileSystemWithId(FsFileSystem* out, u64 titleId, FsFileSystemType fsType, const char* contentPath) { char sendStr[FS_MAX_PATH]; - strncpy(sendStr, contentPath, sizeof(sendStr)); + strncpy(sendStr, contentPath, sizeof(sendStr)-1); sendStr[sizeof(sendStr)-1] = 0; IpcCommand c;