Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't stop reading if fread returns an empty string (#20)
This fixes a premature loop termination on empty string read, which can happen when reading from network streams, leading to packing truncated files silently. By explicitly checking against "false", the loop will terminate only if fread returns a failure.
- Loading branch information