diff options
Diffstat (limited to 'lib/libc/stdio/asprintf.c')
-rw-r--r-- | lib/libc/stdio/asprintf.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/stdio/asprintf.c b/lib/libc/stdio/asprintf.c index f93d2cd7fad..72c217a4119 100644 --- a/lib/libc/stdio/asprintf.c +++ b/lib/libc/stdio/asprintf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asprintf.c,v 1.11 2005/03/31 18:36:29 pat Exp $ */ +/* $OpenBSD: asprintf.c,v 1.12 2005/04/30 09:25:17 espie Exp $ */ /* * Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com> @@ -17,13 +17,14 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: asprintf.c,v 1.11 2005/03/31 18:36:29 pat Exp $"; +static char rcsid[] = "$OpenBSD: asprintf.c,v 1.12 2005/04/30 09:25:17 espie Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <stdarg.h> +#include "local.h" int asprintf(char **str, const char *fmt, ...) @@ -31,8 +32,10 @@ asprintf(char **str, const char *fmt, ...) int ret; va_list ap; FILE f; + struct __sfileext fext; unsigned char *_base; + _FILEEXT_SETUP(&f, &fext); va_start(ap, fmt); f._file = -1; f._flags = __SWR | __SSTR | __SALC; |