mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Fix a bug introduced in r187302 that was causing fputws() to enter an
infinite loop pretty much unconditionally. It's remarkable that the patch that introduced the bug was never tested, but even more remarkable that nobody noticed for over two years. PR: 167039 MFC after: 3 days
This commit is contained in:
parent
1d0e8a50a0
commit
177628ce75
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ fputws_l(const wchar_t * __restrict ws, FILE * __restrict fp, locale_t locale)
|
|||
iov.iov_len = uio.uio_resid = nbytes;
|
||||
if (__sfvwrite(fp, &uio) != 0)
|
||||
goto error;
|
||||
} while (ws != NULL);
|
||||
} while (wsp != NULL);
|
||||
FUNLOCKFILE(fp);
|
||||
return (0);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue