Browse Source

use size_t to index arrays; avoids big array bugs; ok millert@ guenther@

OPENBSD_4_7
otto 15 years ago
parent
commit
c80808a2a6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/lib/libc/stdlib/heapsort.c

+ 1
- 1
src/lib/libc/stdlib/heapsort.c View File

@ -133,7 +133,7 @@ int
heapsort(void *vbase, size_t nmemb, size_t size, heapsort(void *vbase, size_t nmemb, size_t size,
int (*compar)(const void *, const void *)) int (*compar)(const void *, const void *))
{ {
int cnt, i, j, l;
size_t cnt, i, j, l;
char tmp, *tmp1, *tmp2; char tmp, *tmp1, *tmp2;
char *base, *k, *p, *t; char *base, *k, *p, *t;


Loading…
Cancel
Save