diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-06-20 20:12:26 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-06-20 20:12:26 +0000 |
commit | b67f4a1824602d18fbf28b7428bd12186f017f78 (patch) | |
tree | 6919dbbcaa690b73bc9da4afe610ccb92a69af9d /firmware/common/dircache.c | |
parent | e0637255341a165e1e186e6f2836c614f0121c8b (diff) |
Fix dircache_size calculation bug introcuced 3 revisions ago.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30035 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common/dircache.c')
-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 3eae85ee3b..92eba42f65 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) { |