Commit 1492b4b2 authored by Wayne Davison's avatar Wayne Davison

The deflate_stored() function needed to support Z_INSERT_ONLY.

parent 5b7bcac2
......@@ -1092,6 +1092,11 @@ local block_state deflate_stored(s, flush)
max_block_size = s->pending_buf_size - 5;
}
if (flush == Z_INSERT_ONLY) {
s->block_start = s->strstart;
return need_more;
}
/* Copy as much as possible from input to output: */
for (;;) {
/* Fill the window as much as possible: */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment