diff options
Diffstat (limited to 'lib/libc/stdio/sprintf.c')
-rw-r--r-- | lib/libc/stdio/sprintf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/stdio/sprintf.c b/lib/libc/stdio/sprintf.c index 7b81c1f..e2511d6 100644 --- a/lib/libc/stdio/sprintf.c +++ b/lib/libc/stdio/sprintf.c @@ -51,11 +51,14 @@ sprintf(char *str, char const *fmt, ...) int ret; va_list ap; 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); va_start(ap, fmt); ret = __vfprintf(&f, fmt, ap); va_end(ap); |