Manually prevent placeholder/content appending

This commit is contained in:
Adubbz
2019-08-06 21:29:28 +10:00
parent 7bcf2276a7
commit 5e0f4130c4
3 changed files with 25 additions and 7 deletions

View File

@@ -301,7 +301,7 @@ namespace sts::ncm {
/* We should be given a qualified path. */
if (!unqual_path || unqual_path > path + 0xf) {
return ResultFsUnqualifiedPath;
return ResultInvalidMountName;
}
strncpy(mount_name.name, path, unqual_path - path);