mirror of
https://github.com/CTCaer/hekate.git
synced 2025-04-20 11:35:56 +00:00
use strlen instead of a loop
This commit is contained in:
parent
b6826d1115
commit
95ef8b0004
1 changed files with 1 additions and 5 deletions
|
@ -1949,11 +1949,7 @@ int fix_attributes(char *path, u32 *total, u32 is_root, u32 check_first_run)
|
|||
|
||||
// Set new directory.
|
||||
memcpy(&path[dirLength], "/", 1);
|
||||
for (fileLength = 0; fileLength < 256; fileLength++)
|
||||
{
|
||||
if (fno.fname[fileLength] == 0)
|
||||
break;
|
||||
}
|
||||
fileLength = strlen(fno.fname);
|
||||
memcpy(&path[dirLength+1], fno.fname, fileLength + 1);
|
||||
path[dirLength + fileLength + 2] = 0;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue