From a3a6995f011a0a889b0ce79d5b33773c3a1fbe01 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Sat, 7 Jul 2018 11:29:57 +1000 Subject: [PATCH] Added missing newlines --- nx/source/services/ncm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nx/source/services/ncm.c b/nx/source/services/ncm.c index b86e4f3f..d17057b0 100644 --- a/nx/source/services/ncm.c +++ b/nx/source/services/ncm.c @@ -130,10 +130,10 @@ Result ncmContentStorageHas(NcmContentStorage* cs, const NcmNcaId* ncaId, bool* } Result ncmContentStorageGetPath(NcmContentStorage* cs, const NcmNcaId* ncaId, char* out, size_t outSize) { - char out_path[FS_MAX_PATH] = {0}; + char out_path[FS_MAX_PATH-1] = {0}; IpcCommand c; ipcInitialize(&c); - ipcAddRecvStatic(&c, out_path, FS_MAX_PATH - 1, 0); + ipcAddRecvStatic(&c, out_path, FS_MAX_PATH-1, 0); struct { u64 magic; @@ -160,7 +160,7 @@ Result ncmContentStorageGetPath(NcmContentStorage* cs, const NcmNcaId* ncaId, ch rc = resp->result; if (R_SUCCEEDED(rc)) { - if (outSize > FS_MAX_PATH - 1) outSize = FS_MAX_PATH - 1; + if (outSize > FS_MAX_PATH-1) outSize = FS_MAX_PATH-1; strncpy(out, out_path, outSize); } }