summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/setrunelocale.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/locale/setrunelocale.c')
-rw-r--r--lib/libc/locale/setrunelocale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c
index 65daa83..4297206 100644
--- a/lib/libc/locale/setrunelocale.c
+++ b/lib/libc/locale/setrunelocale.c
@@ -84,8 +84,8 @@ _xpg4_setrunelocale(encoding)
}
if (!_PathLocale)
- return(EFAULT);
- /* Range checking already done at upper level caller */
+ _PathLocale = _PATH_LOCALE;
+ /* Range checking not needed, encoding has fixed size */
(void) strcpy(name, _PathLocale);
(void) strcat(name, "/");
(void) strcat(name, encoding);
OpenPOWER on IntegriCloud