summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-09 23:38:41 -0500
committerpommicket <pommicket@gmail.com>2022-12-09 23:38:41 -0500
commita604ad77ff7ef6a75cccdeb86d1a5608caf7c2a6 (patch)
tree1f70aad0df10dea59548edbf305f195e1dac8112 /util.c
parent4c5be13a9bcd298f01252f71579cd86c7e487966 (diff)
real completion parsing!!
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 76229af..4edf601 100644
--- a/util.c
+++ b/util.c
@@ -251,7 +251,7 @@ typedef struct {
} QSortWithContext;
static int qsort_with_context_cmp(const void *a, const void *b, void *context) {
QSortWithContext *c = context;
- return c->compar(context, a, b);
+ return c->compar(c->context, a, b);
}
static void qsort_with_context(void *base, size_t nmemb, size_t size,
int (*compar)(void *, const void *, const void *),