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/vasprintf.c | |
| parent | d1d407360d0bc6cf5fec4853bcdfb05489194cac (diff) | |
delint
Diffstat (limited to 'lib/libc/stdio/vasprintf.c')
| -rw-r--r-- | lib/libc/stdio/vasprintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdio/vasprintf.c b/lib/libc/stdio/vasprintf.c index 3b0f5bda4e7..67c0e6e0daf 100644 --- a/lib/libc/stdio/vasprintf.c +++ b/lib/libc/stdio/vasprintf.c @@ -1,4 +1,4 @@ -/* $NetBSD: vasprintf.c,v 1.3 1998/10/15 07:36:09 mycroft Exp $ */ +/* $NetBSD: vasprintf.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: vasprintf.c,v 1.3 1998/10/15 07:36:09 mycroft Exp $"); +__RCSID("$NetBSD: vasprintf.c,v 1.4 1998/11/15 17:19:53 christos Exp $"); #endif /* LIBC_SCCS and not lint */ #include <stdio.h> @@ -55,7 +55,7 @@ vasprintf(str, fmt, ap) if (ret == -1) goto err; *f._p = '\0'; - _base = realloc(f._bf._base, ret + 1); + _base = realloc(f._bf._base, (size_t)(ret + 1)); if (_base == NULL) goto err; *str = (char *)_base; |
