Commit b9d1f53
authored
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.1 parent b04e520 commit b9d1f53
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
| 359 | + | |
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| |||
0 commit comments