diff options
Diffstat (limited to 'lib/libc/stdio/vsprintf.c')
| -rw-r--r-- | lib/libc/stdio/vsprintf.c | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/stdio/vsprintf.c b/lib/libc/stdio/vsprintf.c index 923afd814369..60d830c38eaa 100644 --- a/lib/libc/stdio/vsprintf.c +++ b/lib/libc/stdio/vsprintf.c @@ -45,14 +45,13 @@ vsprintf(char * __restrict str, const char * __restrict fmt, __va_list 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); +	f._orientation = 0; +	memset(&f._mbstate, 0, sizeof(mbstate_t));  	ret = __vfprintf(&f, fmt, ap);  	*f._p = 0;  	return (ret);  | 
