diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-05-24 17:57:20 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-05-24 17:57:20 +0000 |
commit | 307a36ae6cc0219b9923f7169597b82827342378 (patch) | |
tree | fcb2bda494cf73120571f418c0286c3f65ec9557 /usr.bin/sort/append.c | |
parent | 15692f0db44772091e8421fdfdbd95fd3a2fe04a (diff) |
Dynamically allocate memory for structures whose sizes are based on the
number of keys given. Closes PR #825.
Diffstat (limited to 'usr.bin/sort/append.c')
-rw-r--r-- | usr.bin/sort/append.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/sort/append.c b/usr.bin/sort/append.c index 9542fb5e86b..64e5a06b2b8 100644 --- a/usr.bin/sort/append.c +++ b/usr.bin/sort/append.c @@ -1,4 +1,4 @@ -/* $OpenBSD: append.c,v 1.4 1998/05/02 02:41:55 mickey Exp $ */ +/* $OpenBSD: append.c,v 1.5 1999/05/24 17:57:17 millert Exp $ */ /*- * Copyright (c) 1993 @@ -40,7 +40,7 @@ #if 0 static char sccsid[] = "@(#)append.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: append.c,v 1.4 1998/05/02 02:41:55 mickey Exp $"; +static char rcsid[] = "$OpenBSD: append.c,v 1.5 1999/05/24 17:57:17 millert Exp $"; #endif #endif /* not lint */ @@ -76,7 +76,7 @@ append(keylist, nelem, depth, fp, put, ftbl) struct field *ftbl; { register u_char *wts, *wts1; - register n, odepth; + register int n, odepth; register u_char **cpos, **ppos, **lastkey; register u_char *cend, *pend, *start; register RECHEADER *crec, *prec; |