diff options
-rw-r--r-- | lib/libc/stdio/vfprintf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index 1aa62dcbf98..fc33fb971f3 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -35,7 +35,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: vfprintf.c,v 1.9 1999/08/22 17:06:35 millert Exp $"; +static char *rcsid = "$OpenBSD: vfprintf.c,v 1.10 2001/04/20 00:10:11 millert Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -1079,13 +1079,14 @@ __grow_type_table(typetable, tablesize) if (*tablesize == STATIC_ARG_TBL_SIZE) { *typetable = (unsigned char *) malloc (sizeof (unsigned char) * newsize); + /* XXX unchecked */ bcopy (oldtable, *typetable, *tablesize); } else { *typetable = (unsigned char *) - realloc (typetable, sizeof (unsigned char) * newsize); + realloc (*typetable, sizeof (unsigned char) * newsize); /* XXX unchecked */ } - memset (&typetable [*tablesize], T_UNUSED, (newsize - *tablesize)); + memset (*typetable + *tablesize, T_UNUSED, (newsize - *tablesize)); *tablesize = newsize; return(0); |