1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-26 22:02:15 +00:00

fs_mitm/fs_dir_utils: Amend logic error within IterateDirectoryRecursivelyInternal() (#498)

This likely intended to get the size of the string and then subtract the
null terminator byte. Instead, this would always result in a sizeof of
8.
This commit is contained in:
Mat M 2019-04-04 23:04:26 -04:00 committed by SciresM
parent fb5e02050b
commit 753958de28

View file

@ -32,7 +32,7 @@ class FsDirUtils {
return rc;
}
const size_t parent_len = strnlen(work_path.str, sizeof(work_path.str - 1));
const size_t parent_len = strnlen(work_path.str, sizeof(work_path.str) - 1);
/* Read and handle entries. */
while (true) {