diff options
Diffstat (limited to 'wcsmbs/mbsrtowcs.c')
-rw-r--r-- | wcsmbs/mbsrtowcs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wcsmbs/mbsrtowcs.c b/wcsmbs/mbsrtowcs.c index d7305d6..276d125 100644 --- a/wcsmbs/mbsrtowcs.c +++ b/wcsmbs/mbsrtowcs.c @@ -93,7 +93,7 @@ __mbsrtowcs (dst, src, len, ps) else { /* This is an illegal encoding. */ - errno = EILSEQ; + __set_errno (EILSEQ); return (size_t) -1; } @@ -105,7 +105,7 @@ __mbsrtowcs (dst, src, len, ps) if ((byte & 0xc0) != 0x80) { /* This is an illegal encoding. */ - errno = EILSEQ; + __set_errno (EILSEQ); return (size_t) -1; } |