diff options
| author | otto <> | 2010-02-08 11:01:52 +0000 |
|---|---|---|
| committer | otto <> | 2010-02-08 11:01:52 +0000 |
| commit | 51ca5794e1468e2ad153e694158bc7be8a042399 (patch) | |
| tree | 63d3ba90d8c5cd5ce0dc71486f2f315285493760 | |
| parent | aaa0cabd6a83ca6edba4b6122b65033db1337306 (diff) | |
| download | openbsd-51ca5794e1468e2ad153e694158bc7be8a042399.tar.gz openbsd-51ca5794e1468e2ad153e694158bc7be8a042399.tar.bz2 openbsd-51ca5794e1468e2ad153e694158bc7be8a042399.zip | |
use size_t to index arrays; avoids big array bugs; ok millert@ guenther@
Diffstat (limited to '')
| -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 | ||
