diff options
author | das <das@FreeBSD.org> | 2012-04-21 07:31:27 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2012-04-21 07:31:27 +0000 |
commit | 73b414e35bb2d18ee8e7c6a46c46fd4a5d24977c (patch) | |
tree | a9fd9617db991c9d9b79dabba7a66d17ef60962f /lib | |
parent | 510fa4d86938ebd3f58060f9768fb4ed615fb1ca (diff) | |
download | FreeBSD-src-73b414e35bb2d18ee8e7c6a46c46fd4a5d24977c.zip FreeBSD-src-73b414e35bb2d18ee8e7c6a46c46fd4a5d24977c.tar.gz |
As noted by Peter Jeremy, r234528 only partially fixed the infinite
loop bug introduced in r187302. This completes the fix.
PR: 167039
MFC after: 3 days
Diffstat (limited to 'lib')
-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 d9dc4dfb..fa8d317 100644 --- a/lib/libc/stdio/fputws.c +++ b/lib/libc/stdio/fputws.c @@ -61,8 +61,8 @@ fputws_l(const wchar_t * __restrict ws, FILE * __restrict fp, locale_t locale) uio.uio_iov = &iov; uio.uio_iovcnt = 1; iov.iov_base = buf; + wsp = ws; do { - wsp = ws; nbytes = l->__wcsnrtombs(buf, &wsp, SIZE_T_MAX, sizeof(buf), &fp->_mbstate); if (nbytes == (size_t)-1) |