summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib
diff options
context:
space:
mode:
authortedu <>2015-02-24 19:19:32 +0000
committertedu <>2015-02-24 19:19:32 +0000
commitc26938f193a6b5aa045558e4f3b17074d78823a0 (patch)
tree698aa4f0becbb1736c300ecd068b9d0662ed1e61 /src/lib/libc/stdlib
parent9cb1a51933a1847042ee88e16d560485f682bcad (diff)
downloadopenbsd-c26938f193a6b5aa045558e4f3b17074d78823a0.tar.gz
openbsd-c26938f193a6b5aa045558e4f3b17074d78823a0.tar.bz2
openbsd-c26938f193a6b5aa045558e4f3b17074d78823a0.zip
Set errno to EINVAL, instead of letting ERANGE escape out.
Printing strerror() in that case will say result too large, even if rounds is actually too small. invalid is less specific, but less incorrect. ok millert
Diffstat (limited to 'src/lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions