diff options
| author | Tim J. Robbins <tjr@FreeBSD.org> | 2002-08-13 09:30:41 +0000 | 
|---|---|---|
| committer | Tim J. Robbins <tjr@FreeBSD.org> | 2002-08-13 09:30:41 +0000 | 
| commit | e74101e4eff767325553039def89de70b70f36d3 (patch) | |
| tree | b19b15290ce2e0d3c58bac59a2bcb0295e1af757 /lib/libc/stdio/snprintf.c | |
| parent | 149004e99dc4abe92b530803e963e50943750f40 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/snprintf.c')
| -rw-r--r-- | lib/libc/stdio/snprintf.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/lib/libc/stdio/snprintf.c b/lib/libc/stdio/snprintf.c index e3e71f227bd3..e4cc7fcfea4e 100644 --- a/lib/libc/stdio/snprintf.c +++ b/lib/libc/stdio/snprintf.c @@ -53,6 +53,7 @@ snprintf(char *str, size_t n, char const *fmt, ...)  	int ret;  	va_list ap;  	FILE f; +	struct __sFILEX ext;  	on = n;  	if (n != 0) @@ -64,6 +65,8 @@ snprintf(char *str, size_t n, char const *fmt, ...)  	f._flags = __SWR | __SSTR;  	f._bf._base = f._p = (unsigned char *)str;  	f._bf._size = f._w = n; +	f._extra = &ext; +	INITEXTRA(&f);  	ret = __vfprintf(&f, fmt, ap);  	if (on > 0)  		*f._p = '\0'; | 
