Be more pedantic about the error-checking, fread can also return values > 0 even though there has been a read-error. We want to write the last incoming data and then bail.
436 B
436 B