summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/vsprintf.c
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2002-08-13 09:30:41 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2002-08-13 09:30:41 +0000
commite74101e4eff767325553039def89de70b70f36d3 (patch)
treeb19b15290ce2e0d3c58bac59a2bcb0295e1af757 /lib/libc/stdio/vsprintf.c
parent149004e99dc4abe92b530803e963e50943750f40 (diff)
Notes
Diffstat (limited to 'lib/libc/stdio/vsprintf.c')
-rw-r--r--lib/libc/stdio/vsprintf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/stdio/vsprintf.c b/lib/libc/stdio/vsprintf.c
index a3eebb39b0a9..3f92fcdb0227 100644
--- a/lib/libc/stdio/vsprintf.c
+++ b/lib/libc/stdio/vsprintf.c
@@ -52,11 +52,14 @@ vsprintf(str, fmt, ap)
{
int ret;
FILE f;
+ struct __sFILEX ext;
f._file = -1;
f._flags = __SWR | __SSTR;
f._bf._base = f._p = (unsigned char *)str;
f._bf._size = f._w = INT_MAX;
+ f._extra = &ext;
+ INITEXTRA(&f);
ret = __vfprintf(&f, fmt, ap);
*f._p = 0;
return (ret);