diff options
| author | christos <christos@NetBSD.org> | 1998-11-15 17:19:53 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 1998-11-15 17:19:53 +0000 |
| commit | e7f7fdba9a2ceba2e63bb84ca8a38c2624b7bf1c (patch) | |
| tree | 0ed0e8a0dad82e3eb6e4c7fc56536932a52f2740 /lib/libc/stdio/asprintf.c | |
| parent | d1d407360d0bc6cf5fec4853bcdfb05489194cac (diff) | |
delint
Diffstat (limited to 'lib/libc/stdio/asprintf.c')
| -rw-r--r-- | lib/libc/stdio/asprintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdio/asprintf.c b/lib/libc/stdio/asprintf.c index aacd315858f..d6345b8bea6 100644 --- a/lib/libc/stdio/asprintf.c +++ b/lib/libc/stdio/asprintf.c @@ -1,4 +1,4 @@ -/* $NetBSD: asprintf.c,v 1.3 1998/10/15 07:36:09 mycroft Exp $ */ +/* $NetBSD: asprintf.c,v 1.4 1998/11/15 17:19:53 christos Exp $ */ /* * Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com> @@ -29,7 +29,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: asprintf.c,v 1.3 1998/10/15 07:36:09 mycroft Exp $"); +__RCSID("$NetBSD: asprintf.c,v 1.4 1998/11/15 17:19:53 christos Exp $"); #endif /* LIBC_SCCS and not lint */ #include <stdio.h> @@ -71,7 +71,7 @@ asprintf(str, fmt, va_alist) goto err; *f._p = '\0'; va_end(ap); - _base = realloc(f._bf._base, ret + 1); + _base = realloc(f._bf._base, (size_t)(ret + 1)); if (_base == NULL) goto err; *str = (char *)_base; |
