diff options
Diffstat (limited to 'lib/libc/stdio/vsprintf.c')
-rw-r--r-- | lib/libc/stdio/vsprintf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/stdio/vsprintf.c b/lib/libc/stdio/vsprintf.c index a3eebb3..3f92fcd 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); |