I feel this wording of the history is more clear.

ANSIfy vasprintf() while I'm here.
This commit is contained in:
David E. O'Brien 2010-04-05 22:09:29 +00:00
parent f1853d0fc2
commit 6a18a77221
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=206217
2 changed files with 6 additions and 9 deletions

View File

@ -891,9 +891,9 @@ in
.Fx 2.2 ,
but were later replaced with a different implementation
from
.An Todd C. Miller Aq Todd.Miller@courtesan.com
for
.Ox 2.3 .
.Ox 2.3
by
.An Todd C. Miller Aq Todd.Miller@courtesan.com .
The
.Fn dprintf
and

View File

@ -36,16 +36,13 @@ __FBSDID("$FreeBSD$");
#include "local.h"
int
vasprintf(str, fmt, ap)
char **str;
const char *fmt;
__va_list ap;
vasprintf(char **str, const char *fmt, __va_list ap)
{
int ret;
FILE f = FAKE_FILE;
int ret;
f._flags = __SWR | __SSTR | __SALC;
f._bf._base = f._p = (unsigned char *)malloc(128);
f._bf._base = f._p = malloc(128);
if (f._bf._base == NULL) {
*str = NULL;
errno = ENOMEM;