From ccaf55a8ae707951d9e91a799bfa05970df829c9 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 21 Sep 2011 13:32:37 +0000 Subject: 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 --- apps/filetypes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/filetypes.c') diff --git a/apps/filetypes.c b/apps/filetypes.c index 8f2e912..d275c65 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); -- cgit v1.1