From 4f004dc5b722b4416b1caa9b67a193262b76772e Mon Sep 17 00:00:00 2001 From: otto <> Date: Mon, 8 Feb 2010 11:01:52 +0000 Subject: use size_t to index arrays; avoids big array bugs; ok millert@ guenther@ --- src/lib/libc/stdlib/heapsort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/libc/stdlib/heapsort.c b/src/lib/libc/stdlib/heapsort.c index e6fb61ba2f..ad3fffbcd9 100644 --- a/src/lib/libc/stdlib/heapsort.c +++ b/src/lib/libc/stdlib/heapsort.c @@ -133,7 +133,7 @@ int heapsort(void *vbase, size_t nmemb, size_t size, int (*compar)(const void *, const void *)) { - int cnt, i, j, l; + size_t cnt, i, j, l; char tmp, *tmp1, *tmp2; char *base, *k, *p, *t; -- cgit v1.2.3-55-g6feb