Welcome to little lamb

Code » qmdoc » commit 9a5ab12

Update to latest limb

author Olivier Brunel
2023-07-07 15:44:59 UTC
committer Olivier Brunel
2023-07-07 16:59:36 UTC
parent 68039116671a46a9777da9b8dd6e96dd9b986208

Update to latest limb

src/qmdoc/qmdoc.c +2 -3

diff --git a/src/qmdoc/qmdoc.c b/src/qmdoc/qmdoc.c
index 32541a6..5c9aa1c 100644
--- a/src/qmdoc/qmdoc.c
+++ b/src/qmdoc/qmdoc.c
@@ -1655,7 +1655,7 @@ scan_pages(enum idx *idx_mode, int bfd, stralloc *filesa, size_t fileoff, int nf
             if (scan.ndirs) {
                 size_t aoff = scan.sa->len;
                 /* make an array of names('s offsets) */
-                int n = sa_coloff(scan.sa, scan.off, aoff);
+                int n = sa_coloff(scan.sa, scan.off, 0, aoff);
                 /* sort said array, to process subdirs in order */
                 struct cmp cmp = {
                     .sa = scan.sa,
@@ -2153,8 +2153,7 @@ main (int argc, const char *argv[])
             cmp.desc = parse.sort_group_desc;
             cmp.sort = parse.sort_group;
 
-            qsort_r(genalloc_s(int, &ctx.ga_idx) + from, to - from + 1,
-                    sizeof(int), cmp_page, &cmp);
+            genalloc_qsort_r_full(int, &ctx.ga_idx, from, to - from + 1, cmp_page, &cmp);
         }
         genalloc_free(int, &ga_sg);
     }