mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-18 08:11:21 +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
@ -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 New Issue
Block a user