diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcompat/4.3/lsearch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcompat/4.3/lsearch.c b/lib/libcompat/4.3/lsearch.c index 9a21afee154..da3d9731eaf 100644 --- a/lib/libcompat/4.3/lsearch.c +++ b/lib/libcompat/4.3/lsearch.c @@ -75,7 +75,7 @@ linear_base(key, base, nelp, width, compar, add_flag) end = (const char *)base + *nelp * width; for (element = base; element < end; element += width) - if (!compar(element, key)) /* key found */ + if (!compar(key, element)) /* key found */ return((void *)element); if (!add_flag) /* key not found */ |