forked from len0rd/rockbox
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:
parent
e063725534
commit
b67f4a1824
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue