diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2010-02-08 11:01:53 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2010-02-08 11:01:53 +0000 |
commit | 94738715918b4ab2eeb0697dcf3cd5464333da4d (patch) | |
tree | be2e42feb827c2ad202125f71fc9af6e5f68acbd /lib | |
parent | d16c5edb70e16ebaa34f791b59e53ed71dc0bfc2 (diff) |
use size_t to index arrays; avoids big array bugs; ok millert@ guenther@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdlib/heapsort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdlib/heapsort.c b/lib/libc/stdlib/heapsort.c index e6fb61ba2fb..ad3fffbcd93 100644 --- a/lib/libc/stdlib/heapsort.c +++ b/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; |