commit | d8b1ad31cf7ee205ddf3cf396b1d1bfa45af49fa | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Wed Jan 15 17:42:52 2014 +0200 |
committer | Andrey Andreev <narf@devilix.net> | Wed Jan 15 17:42:52 2014 +0200 |
tree | c7f9af25914bb61a13aa8df7be69ad73edd74e04 | |
parent | 1b0a6a0c9aaf620d4b45b7392af557e85c6d5339 [diff] |
Fix #2822: Incorrect usage of fwrite() We only used to check (and not always) if the return value of fwrite() is boolean FALSE, while it is possible that the otherwise returned bytecount is less than the length of data that we're trying to write. This allowed incomplete writes over network streams and possibly a few other edge cases.