Commit 917005a6 authored by Axel Auweter's avatar Axel Auweter
Browse files

fread returns the number of items read (not the number of bytes)...

parent 37657163
......@@ -112,7 +112,7 @@ void spew() {
}
/* Read data into buffer */
if(fread(data, len, 1, fp) != (size_t)len) {
if(fread(data, len, 1, fp) != 1) {
fprintf(stderr, "Warning: could not read until end of file.\n");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment