diff options
| author | Mark Adler <madler@alumni.caltech.edu> | 2017-01-02 16:17:43 -0800 |
|---|---|---|
| committer | Mark Adler <madler@alumni.caltech.edu> | 2017-01-02 16:17:43 -0800 |
| commit | 0b5c158cc717839956e541a99df9986423c4cae4 (patch) | |
| tree | 2d26f6a6d6d90b67968b2c76a4528479e7989df5 | |
| parent | bc5503b224b64e2dfafe1f6d6f2dace191eb219d (diff) | |
| download | zlib-0b5c158cc717839956e541a99df9986423c4cae4.tar.gz zlib-0b5c158cc717839956e541a99df9986423c4cae4.tar.bz2 zlib-0b5c158cc717839956e541a99df9986423c4cae4.zip | |
Fix bug in gzwrite.c that produced corrupt gzip files.
| -rw-r--r-- | gzwrite.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -117,6 +117,7 @@ local int gz_comp(state, flush) | |||
| 117 | if (strm->avail_out == 0) { | 117 | if (strm->avail_out == 0) { |
| 118 | strm->avail_out = state->size; | 118 | strm->avail_out = state->size; |
| 119 | strm->next_out = state->out; | 119 | strm->next_out = state->out; |
| 120 | state->x.next = state->out; | ||
| 120 | } | 121 | } |
| 121 | } | 122 | } |
| 122 | 123 | ||
