diff options
| -rw-r--r-- | firmware/common/dircache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/dircache.c b/firmware/common/dircache.c index 3eae85e..92eba42 100644 --- a/firmware/common/dircache.c +++ b/firmware/common/dircache.c @@ -1015,7 +1015,7 @@ static struct dircache_entry* dircache_new_entry(const char *path, int attribute entry->info.attribute = attribute; strcpy(entry->d_name, new); - dircache_size += strlen(entry->d_name); + dircache_size += strlen(entry->d_name) + 1; if (attribute & ATTR_DIRECTORY) { |