mirror of
https://github.com/CTCaer/hekate.git
synced 2025-04-20 11:35:56 +00:00
don't recalculate path length with every file
This commit is contained in:
parent
8adb78a629
commit
b6826d1115
1 changed files with 1 additions and 1 deletions
|
@ -1932,6 +1932,7 @@ int fix_attributes(char *path, u32 *total, u32 is_root, u32 check_first_run)
|
|||
res = f_opendir(&dir, path);
|
||||
if (res == FR_OK)
|
||||
{
|
||||
dirLength = strlen(path);
|
||||
for (;;)
|
||||
{
|
||||
// Read a directory item.
|
||||
|
@ -1947,7 +1948,6 @@ int fix_attributes(char *path, u32 *total, u32 is_root, u32 check_first_run)
|
|||
}
|
||||
|
||||
// Set new directory.
|
||||
dirLength = strlen(path);
|
||||
memcpy(&path[dirLength], "/", 1);
|
||||
for (fileLength = 0; fileLength < 256; fileLength++)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue