This website works better with JavaScript.
Home
Explore
Register
Sign In
Fincer
/
openntpd-openbsd
mirror of
https://github.com/Fincer/openntpd-openbsd
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
61
Wiki
Activity
Browse Source
use size_t to index arrays; avoids big array bugs; ok millert@ guenther@
OPENBSD_4_7
otto
15 years ago
parent
18136ed9f5
commit
c80808a2a6
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
*
)
)
{
{
in
t
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
;
Write
Preview
Loading…
Cancel
Save