diff options
author | otto <> | 2010-02-08 11:01:52 +0000 |
---|---|---|
committer | otto <> | 2010-02-08 11:01:52 +0000 |
commit | 4f004dc5b722b4416b1caa9b67a193262b76772e (patch) | |
tree | 63d3ba90d8c5cd5ce0dc71486f2f315285493760 /src | |
parent | 44a740d46dbdb3792d875e44b2e570f98dbd5d75 (diff) | |
download | openbsd-4f004dc5b722b4416b1caa9b67a193262b76772e.tar.gz openbsd-4f004dc5b722b4416b1caa9b67a193262b76772e.tar.bz2 openbsd-4f004dc5b722b4416b1caa9b67a193262b76772e.zip |
use size_t to index arrays; avoids big array bugs; ok millert@ guenther@
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libc/stdlib/heapsort.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
133 | heapsort(void *vbase, size_t nmemb, size_t size, | 133 | heapsort(void *vbase, size_t nmemb, size_t size, |
134 | int (*compar)(const void *, const void *)) | 134 | int (*compar)(const void *, const void *)) |
135 | { | 135 | { |
136 | int cnt, i, j, l; | 136 | size_t cnt, i, j, l; |
137 | char tmp, *tmp1, *tmp2; | 137 | char tmp, *tmp1, *tmp2; |
138 | char *base, *k, *p, *t; | 138 | char *base, *k, *p, *t; |
139 | 139 | ||