From: Andre Noll Date: Wed, 19 Sep 2007 17:07:36 +0000 (+0200) Subject: aft.c: Fix a nasty memory corruption bug in afs_ls on 64 bit archs. X-Git-Tag: v0.3.0~385 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=fff649efb036203c055d72ed74104fb00964ab2a;ds=inline aft.c: Fix a nasty memory corruption bug in afs_ls on 64 bit archs. That was pretty hard to spot but obvious once found. --- diff --git a/aft.c b/aft.c index 0013b2a2..423731f6 100644 --- a/aft.c +++ b/aft.c @@ -827,7 +827,7 @@ static int ls_path_compare(const void *a, const void *b) static int sort_matching_paths(struct ls_options *options) { size_t nmemb = options->num_matching_paths; - size_t size = sizeof(uint32_t); + size_t size = sizeof(*options->data_ptr); int (*compar)(const void *, const void *); int i;