diff options
author | ache <ache@FreeBSD.org> | 2002-08-03 09:07:27 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2002-08-03 09:07:27 +0000 |
commit | 3b1f16ca2dd1d2848876843d8585e2f14f910809 (patch) | |
tree | f236a9aa6f97c71f5ea74dbda09af5fa8769f3f1 | |
parent | a585ff9d4bdbc3bd73bbbe8f0a1e2306c7d64fc0 (diff) | |
download | FreeBSD-src-3b1f16ca2dd1d2848876843d8585e2f14f910809.zip FreeBSD-src-3b1f16ca2dd1d2848876843d8585e2f14f910809.tar.gz |
Return ENAMETOOLONG for long PATH_LOCALE, not EFAULT
-rw-r--r-- | lib/libc/locale/setrunelocale.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |