提交 0b5c158c 编写于 作者: M Mark Adler

Fix bug in gzwrite.c that produced corrupt gzip files.

上级 bc5503b2
...@@ -117,6 +117,7 @@ local int gz_comp(state, flush) ...@@ -117,6 +117,7 @@ local int gz_comp(state, flush)
if (strm->avail_out == 0) { if (strm->avail_out == 0) {
strm->avail_out = state->size; strm->avail_out = state->size;
strm->next_out = state->out; strm->next_out = state->out;
state->x.next = state->out;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册