commit | 500c6886c654fd45e4926990fee2c61d816be197 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Wed Feb 10 19:44:19 2016 -0500 |
committer | Rich Felker <dalias@aerifal.cx> | Wed Feb 10 19:44:19 2016 -0500 |
tree | 8a46228b4a5880e3f1c57499ef92d123d51dbe07 | |
parent | 416d1c7a711807384cc21a18163475cf757bbcb5 [diff] |
fix return value for fread/fwrite when size argument is 0 when the size argument was zero but nmemb was nonzero, these functions were returning nmemb, despite no data having been written. conceptually this is not wrong, but the standard requires a return value of zero in this case.