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
This commit is contained in:
parent
666d00d34a
commit
86dc3a9ae2
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user