aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs/wcrtomb.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs/wcrtomb.c')
-rw-r--r--wcsmbs/wcrtomb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wcsmbs/wcrtomb.c b/wcsmbs/wcrtomb.c
index 052a5b9..f5d9f7e 100644
--- a/wcsmbs/wcrtomb.c
+++ b/wcsmbs/wcrtomb.c
@@ -56,7 +56,7 @@ __wcrtomb (char *s, wchar_t wc, mbstate_t *ps)
if (wc < 0 || wc > 0x7fffffff)
{
/* This is no correct ISO 10646 character. */
- errno = EILSEQ;
+ __set_errno (EILSEQ);
return (size_t) -1;
}