Return EINVAL for NULL or too long encoding, not EFAULT
This commit is contained in:
parent
3b1f16ca2d
commit
b6a6d004ff
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user