From 7d81f2d1dea52e106f5da45a42e1caddf7d4ff80 Mon Sep 17 00:00:00 2001 From: "Tomsic, Jason" Date: Fri, 6 Jul 2018 08:27:37 -0400 Subject: [PATCH] combining some lines and removing a var for efficiency --- ipl/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ipl/main.c b/ipl/main.c index 0ffd3d5..85d6217 100755 --- a/ipl/main.c +++ b/ipl/main.c @@ -1911,7 +1911,6 @@ int fix_attributes(char *path, u32 *total, u32 is_root, u32 check_first_run) FRESULT res; DIR dir; u32 dirLength = 0; - u32 fileLength = 0; static FILINFO fno; // Should we set the bit of the entry directory? @@ -1954,8 +1953,7 @@ int fix_attributes(char *path, u32 *total, u32 is_root, u32 check_first_run) // Set new directory or file. memcpy(&path[dirLength], "/", 1); - fileLength = strlen(fno.fname); - memcpy(&path[dirLength+1], fno.fname, fileLength + 1); + memcpy(&path[dirLength+1], fno.fname, strlen(fno.fname) + 1); // Check if archive bit is set. if (fno.fattrib & AM_ARC)