Skip to content
Snippets Groups Projects
Commit eb1649a4 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Bugfix in write_wrapper.

parent 19d3ea10
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ static inline int write_to_file_crc(const void *src,
* care how many bytes had been written, it just cares about
* success/fail (not that it is checked anyway) (#1684).
*/
return rc == n;
return rc == size * n;
}
static inline int write_to_stream(const void *src,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment