summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2007-02-01 17:15:50 +0000
committerSteve Bavin <pondlife@pondlife.me>2007-02-01 17:15:50 +0000
commit74db69e2401b51418425ce8a2ed183d5b8325f76 (patch)
treedefd723fdee4f5f5883d47075593bcbe80b53849 /firmware
parent2289e1c9b446a0f65769fd3024e37a9d3692112b (diff)
downloadrockbox-74db69e2401b51418425ce8a2ed183d5b8325f76.tar.gz
rockbox-74db69e2401b51418425ce8a2ed183d5b8325f76.tar.bz2
rockbox-74db69e2401b51418425ce8a2ed183d5b8325f76.zip
Fix dircache on simulators
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12175 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/common/dircache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/dircache.c b/firmware/common/dircache.c
index 5b84e25ea3..fd9796c0d8 100644
--- a/firmware/common/dircache.c
+++ b/firmware/common/dircache.c
@@ -178,7 +178,7 @@ static int dircache_scan(struct travel_data *td)
}
td->ce->attribute = td->entry->attribute;
- td->ce->name_len = strlen(td->entry->d_name);
+ td->ce->name_len = strlen(td->entry->d_name) + 1;
td->ce->d_name = ((char *)dircache_root+dircache_size);
td->ce->size = td->entry->size;
td->ce->wrtdate = td->entry->wrtdate;