summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-08-03 10:39:46 +0000
committerThomas Martitz <kugel@rockbox.org>2011-08-03 10:39:46 +0000
commit95c1e7d8b07ecd529da3ab747fcf5ee9a1f2b230 (patch)
tree3f38e8496dd2e2657e83188f77dbcebf22c674d2 /apps/tree.c
parent589879bb3d95a1bd84011307a2c2cc934654456c (diff)
Fix oops in r30242. I didn't want to change/reduce the buffer size.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30244 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index fc36671217..e981aeecfc 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -1012,7 +1012,7 @@ void tree_mem_init(void)
cache->name_buffer = buffer_alloc(cache->name_buffer_size);
cache->max_entries = global_settings.max_files_in_dir;
- cache->entries = buffer_alloc(cache->max_entries*(sizeof(cache->entries)));
+ cache->entries = buffer_alloc(cache->max_entries*(sizeof(struct entry)));
tree_get_filetypes(&filetypes, &filetypes_count);
}