From b67f4a1824602d18fbf28b7428bd12186f017f78 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 20 Jun 2011 20:12:26 +0000 Subject: Fix dircache_size calculation bug introcuced 3 revisions ago. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30035 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/dircache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/common/dircache.c') 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) { -- cgit v1.2.3