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/filetypes.c | |
parent | df448bf7a192322ced589f375496f8c17f706111 (diff) |
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/filetypes.c')
-rw-r--r-- | apps/filetypes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c index 8f2e91222a..d275c6501c 100644 --- a/apps/filetypes.c +++ b/apps/filetypes.c @@ -190,7 +190,7 @@ static int move_callback(int handle, void* current, void* new) (void)handle; size_t diff = new - current; #define FIX_PTR(x) \ - { if ((void*)x > current && (void*)x < (current+strdup_bufsize)) x+= diff; } + { if ((void*)x >= current && (void*)x < (current+strdup_bufsize)) x+= diff; } for(int i = 0; i < filetype_count; i++) { FIX_PTR(filetypes[i].extension); |