From 13f2b3ff802c8260bb6697392a6e90f47788fce8 Mon Sep 17 00:00:00 2001 From: Rajko Stojadinovic Date: Sat, 28 Jul 2018 17:46:43 +0200 Subject: [PATCH] Coding style change in fsOpenFileSystemWithId --- nx/source/services/fs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nx/source/services/fs.c b/nx/source/services/fs.c index fbfed5e5..ef79a873 100644 --- a/nx/source/services/fs.c +++ b/nx/source/services/fs.c @@ -431,9 +431,8 @@ Result fsOpenFileSystem(FsFileSystem* out, u64 titleId, FsFileSystemType fsType) } Result fsOpenFileSystemWithId(FsFileSystem* out, u64 titleId, FsFileSystemType fsType, const char* contentPath) { - char sendStr[FS_MAX_PATH]; + char sendStr[FS_MAX_PATH] = {0}; strncpy(sendStr, contentPath, sizeof(sendStr)-1); - sendStr[sizeof(sendStr)-1] = 0; IpcCommand c; ipcInitialize(&c);