Return EINVAL for NULL or too long encoding, not EFAULT

This commit is contained in:
ache 2002-08-03 09:10:31 +00:00
parent 3b1f16ca2d
commit b6a6d004ff

View File

@ -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.