summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/locale/setrunelocale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c
index 774226c..e9cee2e 100644
--- a/lib/libc/locale/setrunelocale.c
+++ b/lib/libc/locale/setrunelocale.c
@@ -62,7 +62,7 @@ setrunelocale(encoding)
_RuneLocale *rl;
if (!encoding || strlen(encoding) > ENCODING_LEN)
- return(EFAULT);
+ return (EINVAL);
/*
* The "C" and "POSIX" locale are always here.
OpenPOWER on IntegriCloud