diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-06-20 12:07:18 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-06-20 12:07:18 -0400 |
commit | f313a1622448de578ab0b11a881f44a02c9082e6 (patch) | |
tree | 1a1aa9a886cdadf5371cae8d7cc7f782b71c28cb /src/linux/err.c | |
parent | 839bff64a17c1ecaed60feefd9b63554ca9cbad6 (diff) | |
download | musl-f313a1622448de578ab0b11a881f44a02c9082e6.tar.gz |
make strerror_r behave nicer on failure
if the buffer is too short, at least return a partial string. this is
helpful if the caller is lazy and does not check for failure. care is
taken to avoid writing anything if the buffer length is zero, and to
always null-terminate when the buffer length is non-zero.
Diffstat (limited to 'src/linux/err.c')
0 files changed, 0 insertions, 0 deletions