From fff649efb036203c055d72ed74104fb00964ab2a Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 19 Sep 2007 19:07:36 +0200 Subject: [PATCH] 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. --- aft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5