aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs/wcstok.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs/wcstok.c')
-rw-r--r--wcsmbs/wcstok.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wcsmbs/wcstok.c b/wcsmbs/wcstok.c
index 42df61923b..553c431aa2 100644
--- a/wcsmbs/wcstok.c
+++ b/wcsmbs/wcstok.c
@@ -34,7 +34,7 @@ wcstok (wcs, delim, save_ptr)
if (wcs == NULL)
if (*save_ptr == NULL)
{
- errno = EINVAL;
+ __set_errno (EINVAL);
return NULL;
}
else