summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fgetws.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/fgetws.c')
-rw-r--r--lib/libc/stdio/fgetws.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/fgetws.c b/lib/libc/stdio/fgetws.c
index bbc0299..550843d 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);
OpenPOWER on IntegriCloud