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
This commit is contained in:
Thomas Martitz 2011-08-03 10:39:46 +00:00
parent 589879bb3d
commit 95c1e7d8b0

View file

@ -1012,7 +1012,7 @@ void tree_mem_init(void)
cache->name_buffer = buffer_alloc(cache->name_buffer_size); cache->name_buffer = buffer_alloc(cache->name_buffer_size);
cache->max_entries = global_settings.max_files_in_dir; 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); tree_get_filetypes(&filetypes, &filetypes_count);
} }