diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2011-09-21 13:32:37 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2011-09-21 13:32:37 +0000 |
commit | ccaf55a8ae707951d9e91a799bfa05970df829c9 (patch) | |
tree | d426d0aebe077a648d6c8e1a2024d57647729dd3 /apps/tree.c | |
parent | df448bf7a192322ced589f375496f8c17f706111 (diff) | |
download | rockbox-ccaf55a8ae707951d9e91a799bfa05970df829c9.tar.gz rockbox-ccaf55a8ae707951d9e91a799bfa05970df829c9.zip |
fix FIX_PTR macro so it actually fixes every pointer (was skipping x == current case)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30577 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c index ca4c567235..2fcaba74a5 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -1019,7 +1019,7 @@ static int move_callback(int handle, void* current, void* new) size_t diff = new - current; /* FIX_PTR makes sure to not accidentally update static allocations */ #define FIX_PTR(x) \ - { if ((void*)x > current && (void*)x < (current+cache->name_buffer_size)) x+= diff; } + { if ((void*)x >= current && (void*)x < (current+cache->name_buffer_size)) x+= diff; } if (handle == cache->name_buffer_handle) { /* update entry structs, *even if they are struct tagentry */ |