diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-09-04 21:37:13 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-03-30 01:15:44 -0400 |
commit | 6d14779eabec925c3977584d5dfd52778047b856 (patch) | |
tree | ff2c591126fa0f84e79857bfc28dfb425e0b4c0d /arch/mips/syscall_arch.h | |
parent | 83eb88d6c2f91a80ab1a48458d8de18c31c4ebb0 (diff) | |
download | musl-6d14779eabec925c3977584d5dfd52778047b856.tar.gz musl-6d14779eabec925c3977584d5dfd52778047b856.tar.xz musl-6d14779eabec925c3977584d5dfd52778047b856.zip |
suppress null termination when fgets reads EOF with no data
the C standard requires that "the contents of the array remain unchanged" in this case. this patch also changes the behavior on read errors, but in that case "the array contents are indeterminate", so the application cannot inspect them anyway. (cherry picked from commit 402611c3ba3be5b3b0486835d98e22ac7ced2722)
Diffstat (limited to 'arch/mips/syscall_arch.h')
0 files changed, 0 insertions, 0 deletions