From 3b1f16ca2dd1d2848876843d8585e2f14f910809 Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 3 Aug 2002 09:07:27 +0000 Subject: Return ENAMETOOLONG for long PATH_LOCALE, not EFAULT --- lib/libc/locale/setrunelocale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/locale/setrunelocale.c') diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c index f3446a9..774226c 100644 --- a/lib/libc/locale/setrunelocale.c +++ b/lib/libc/locale/setrunelocale.c @@ -82,7 +82,7 @@ setrunelocale(encoding) ) { if (strlen(p) + 1/*"/"*/ + ENCODING_LEN + 1/*"/"*/ + CATEGORY_LEN >= PATH_MAX) - return(EFAULT); + return (ENAMETOOLONG); _PathLocale = strdup(p); if (_PathLocale == NULL) return (errno); -- cgit v1.1