diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2017-01-02 16:17:43 -0800 |
---|---|---|
committer | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2017-02-09 11:55:44 +0100 |
commit | 4135626a9a931fc0ca3e4b716879d684358844f8 (patch) | |
tree | f07de8a3158db4331a406b7a1828ea3b5247a56b /gzwrite.c | |
parent | 5317a69f29173a48a96d881369c76309c4d44b48 (diff) |
Fix bug in gzwrite.c that produced corrupt gzip files.
Diffstat (limited to 'gzwrite.c')
-rw-r--r-- | gzwrite.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -103,6 +103,7 @@ static int gz_comp(gz_statep state, int flush) { if (strm->avail_out == 0) { strm->avail_out = state->size; strm->next_out = state->out; + state->x.next = state->out; } state->x.next = strm->next_out; } |