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) | |
download | rockbox-b67f4a1824602d18fbf28b7428bd12186f017f78.tar.gz rockbox-b67f4a1824602d18fbf28b7428bd12186f017f78.zip |
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 | |||
1015 | entry->info.attribute = attribute; | 1015 | entry->info.attribute = attribute; |
1016 | 1016 | ||
1017 | strcpy(entry->d_name, new); | 1017 | strcpy(entry->d_name, new); |
1018 | dircache_size += strlen(entry->d_name); | 1018 | dircache_size += strlen(entry->d_name) + 1; |
1019 | 1019 | ||
1020 | if (attribute & ATTR_DIRECTORY) | 1020 | if (attribute & ATTR_DIRECTORY) |
1021 | { | 1021 | { |