Commit 7b460f8f authored by François Saint-Jacques's avatar François Saint-Jacques
Browse files

fixes fwrite invocation

According to the man page:

On success, fread() and fwrite() return the number of items read or written.
This number equals the number of bytes transferred only when size is 1. If an
error occurs, or the end of the file is reached, the return value is a short
item count (or zero).

Credits goes to David Haguenauer for this catch.
parent 4f46f950
Supports Markdown
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