diff options
| author | Garrett Wollman <wollman@FreeBSD.org> | 2009-11-25 04:45:45 +0000 |
|---|---|---|
| committer | Garrett Wollman <wollman@FreeBSD.org> | 2009-11-25 04:45:45 +0000 |
| commit | 0c0349bfa4ecb2fb0e99d094e2dcaca7f5878d0a (patch) | |
| tree | 01f0d0420123a2fbc4530d2d7bd607cbf6ee8049 /lib/libc/stdio | |
| parent | 750a395ba6d87693b16041db60bf6a0f52695f8f (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio')
| -rw-r--r-- | lib/libc/stdio/fgetws.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/fgetws.c b/lib/libc/stdio/fgetws.c index bbc0299d773c..550843dff676 100644 --- a/lib/libc/stdio/fgetws.c +++ b/lib/libc/stdio/fgetws.c @@ -89,7 +89,7 @@ fgetws(wchar_t * __restrict ws, int n, FILE * __restrict fp) if (!__mbsinit(&fp->_mbstate)) /* Incomplete character */ goto error; - *wsp++ = L'\0'; + *wsp = L'\0'; FUNLOCKFILE(fp); return (ws); |
