diff options
Diffstat (limited to 'lib/libc/locale/none.c')
-rw-r--r-- | lib/libc/locale/none.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/locale/none.c b/lib/libc/locale/none.c index c4695fd..4e5a61d 100644 --- a/lib/libc/locale/none.c +++ b/lib/libc/locale/none.c @@ -174,6 +174,7 @@ _none_wcsnrtombs(char * __restrict dst, const wchar_t ** __restrict src, nchr = 0; while (len-- > 0 && nwc-- > 0) { if (*s < 0 || *s > UCHAR_MAX) { + *src = s; errno = EILSEQ; return ((size_t)-1); } |