提交 377173b5 编写于 作者: M Mark Adler

Fix bug in gzread.c when end-of-file is reached.

上级 98f5779f
......@@ -242,7 +242,7 @@ local int gz_fetch(state)
if (gz_decomp(state) == -1)
return -1;
}
} while (state->x.have == 0);
} while (state->x.have == 0 && (!state->eof || strm->avail_in));
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册