Please sign in to comment.
Fix an error test on the result from fread
fread returns a short byte count on error (and ferror has to be used to determine if it really was an error). There was a check for < 0, which fread cannot return.
- Loading branch information...