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:
parent
fb5e02050b
commit
753958de28
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class FsDirUtils {
|
||||||
return rc;
|
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. */
|
/* Read and handle entries. */
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
Loading…
Reference in a new issue