diff options
Diffstat (limited to 'lib/libc/stdio/fputws.c')
| -rw-r--r-- | lib/libc/stdio/fputws.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/fputws.c b/lib/libc/stdio/fputws.c index 025e1c00d198..73974113253a 100644 --- a/lib/libc/stdio/fputws.c +++ b/lib/libc/stdio/fputws.c @@ -55,7 +55,7 @@ fputws(const wchar_t * __restrict ws, FILE * __restrict fp)  	iov.iov_base = buf;  	do {  		nbytes = __wcsnrtombs(buf, &ws, SIZE_T_MAX, sizeof(buf), -		    &fp->_extra->mbstate); +		    &fp->_mbstate);  		if (nbytes == (size_t)-1)  			goto error;  		iov.iov_len = uio.uio_resid = nbytes;  | 
