diff --git a/lib/qsort.c b/lib/qsort.c index f64871489..d41309678 100644 --- a/lib/qsort.c +++ b/lib/qsort.c @@ -31,7 +31,7 @@ void qsort(void *base, return; /* check for overflow */ - if (nel <= ((size_t)(-1)) / width) + if (nel > ((size_t)(-1)) / width) return; wgap = 0;