mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 10:32:15 +02:00
statements on separate lines
This commit is contained in:
parent
7522156b5f
commit
ab023ff5fe
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user