]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - aft.c
string: Introduce arr_alloc().
[paraslash.git] / aft.c
diff --git a/aft.c b/aft.c
index 991cb777e0a3bf9846d4d9aea389e03b7f6ed6a2..f690e81951b4c7911c2f726b36fee9a673badce7 100644 (file)
--- a/aft.c
+++ b/aft.c
@@ -1224,7 +1224,7 @@ static int sort_matching_paths(struct ls_options *options)
        int (*compar)(const void *, const void *);
        int i;
 
-       options->data_ptr = alloc(nmemb * sizeof(*options->data_ptr));
+       options->data_ptr = arr_alloc(nmemb, sizeof(*options->data_ptr));
        for (i = 0; i < nmemb; i++)
                options->data_ptr[i] = options->data + i;