aft.c: Fix a nasty memory corruption bug in afs_ls on 64 bit archs.
[paraslash.git] / aft.c
diff --git a/aft.c b/aft.c
index 0013b2a..423731f 100644 (file)
--- 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;