diff options
Diffstat (limited to 'libc/misc/search')
-rw-r--r-- | libc/misc/search/_lsearch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/search/_lsearch.c b/libc/misc/search/_lsearch.c index e91ea9441..e446489ed 100644 --- a/libc/misc/search/_lsearch.c +++ b/libc/misc/search/_lsearch.c @@ -22,7 +22,7 @@ void *lfind(const void *key, const void *base, size_t *nmemb, register int n = *nmemb; while (n--) { - if ((*compar) (base, key) == 0) + if ((*compar) (key, base) == 0) return ((void*)base); base += size; } |