From ab023ff5fe250864651abfdcd6e187f41d52d768 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Tue, 8 May 2018 19:30:11 +0100 Subject: [PATCH] statements on separate lines --- nx/source/runtime/devices/fs_dev.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nx/source/runtime/devices/fs_dev.c b/nx/source/runtime/devices/fs_dev.c index 8bd4029e..b49b9172 100644 --- a/nx/source/runtime/devices/fs_dev.c +++ b/nx/source/runtime/devices/fs_dev.c @@ -199,7 +199,8 @@ fsdev_fixpath(struct _reent *r, strncpy(__fixedpath, path, PATH_MAX); else { - strncpy(__fixedpath, __cwd, PATH_MAX); __fixedpath[PATH_MAX] = 0; + strncpy(__fixedpath, __cwd, PATH_MAX); + __fixedpath[PATH_MAX] = '\0'; strncat(__fixedpath, path, PATH_MAX - strlen(__cwd)); } @@ -1038,7 +1039,8 @@ fsdev_chdir(struct _reent *r, if(R_SUCCEEDED(rc)) { fsDirClose(&fd); - strncpy(__cwd, __fixedpath, PATH_MAX);__cwd[PATH_MAX] = 0; + strncpy(__cwd, __fixedpath, PATH_MAX); + __cwd[PATH_MAX] = '\0'; fsdev_fsdevice_cwd = device->id; return 0; }