summaryrefslogtreecommitdiffstats
path: root/firmware/common
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common')
-rw-r--r--firmware/common/dircache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/dircache.c b/firmware/common/dircache.c
index 96b06eb547..b93ee73fc6 100644
--- a/firmware/common/dircache.c
+++ b/firmware/common/dircache.c
@@ -849,7 +849,7 @@ static void free_name(int nameidx, size_t size)
while (beg[-1] == 0xfe)
--beg;
- while (end[1] == 0xfe)
+ while (end[0] == 0xfe)
++end;
size = end - beg;