Fix dircache_size calculation bug introcuced 3 revisions ago.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30035 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2011-06-20 20:12:26 +00:00
parent e063725534
commit b67f4a1824

View File

@ -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)
{