From: Todd C. Miller Date: Sat, 17 Aug 1996 17:15:37 +0000 (+0000) Subject: in compar() key should be first arg X-Git-Tag: SUDO_1_5_0~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76d219d87a27bd313977679c6967499cbc176b2f;p=sudo in compar() key should be first arg --- diff --git a/lsearch.c b/lsearch.c index 8e2a664e4..00392147e 100644 --- a/lsearch.c +++ b/lsearch.c @@ -84,7 +84,7 @@ linear_base(key, base, nelp, width, compar, add_flag) end = (const char *) base + *nelp * width; for (element = (const char *) base; element < end; element += width) - if (!compar((VOID *) element, key)) /* key found */ + if (!compar(key, (VOID *) element)) /* key found */ return((VOID *) element); if (!add_flag) /* key not found */ return(NULL);