Fix bug when window full in deflate_stored().
This commit is contained in:
parent
2d80d3f6b5
commit
8ba393e70d
@ -1775,7 +1775,7 @@ local block_state deflate_stored(s, flush)
|
||||
return block_done;
|
||||
|
||||
/* Fill the window with any remaining input. */
|
||||
have = s->window_size - s->strstart - 1;
|
||||
have = s->window_size - s->strstart;
|
||||
if (s->strm->avail_in > have && s->block_start >= (long)s->w_size) {
|
||||
/* Slide the window down. */
|
||||
s->block_start -= s->w_size;
|
||||
|
Loading…
Reference in New Issue
Block a user