forked from len0rd/rockbox
Initialize the d_names_start pointer correctly in dircache. This should
prevent d_names data from being overwritten (likely causing garbage in file browser and other strange symptoms). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30122 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
86c64d4151
commit
e06bb54d12
1 changed files with 2 additions and 0 deletions
|
@ -885,7 +885,9 @@ int dircache_build(int last_size)
|
|||
for(unsigned i = 0; i < entry_count; i++)
|
||||
dircache_root[i].d_name -= offset;
|
||||
|
||||
d_names_start -= offset;
|
||||
d_names_end -= offset;
|
||||
|
||||
/* equivalent to dircache_size + DIRCACHE_RESERVE */
|
||||
allocated_size = (d_names_end - (char*)dircache_root);
|
||||
reserve_used = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue