diff options
Diffstat (limited to 'deflate.c')
-rw-r--r-- | deflate.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1775,7 +1775,7 @@ local block_state deflate_stored(s, flush) | |||
1775 | return block_done; | 1775 | return block_done; |
1776 | 1776 | ||
1777 | /* Fill the window with any remaining input. */ | 1777 | /* Fill the window with any remaining input. */ |
1778 | have = s->window_size - s->strstart - 1; | 1778 | have = s->window_size - s->strstart; |
1779 | if (s->strm->avail_in > have && s->block_start >= (long)s->w_size) { | 1779 | if (s->strm->avail_in > have && s->block_start >= (long)s->w_size) { |
1780 | /* Slide the window down. */ | 1780 | /* Slide the window down. */ |
1781 | s->block_start -= s->w_size; | 1781 | s->block_start -= s->w_size; |