1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/firmware/common/dircache.c b/firmware/common/dircache.c
index d5b9af6..eef9c14 100644
--- a/firmware/common/dircache.c
+++ b/firmware/common/dircache.c
@@ -887,6 +887,8 @@ int dircache_build(int last_size)
 
     d_names_start -= offset;
     d_names_end -= offset;
+    dot -= offset;
+    dotdot -= offset;
     
     /* equivalent to dircache_size + DIRCACHE_RESERVE */
     allocated_size = (d_names_end - (char*)dircache_root);