Skip to content
Snippets Groups Projects
Commit 8ba393e7 authored by Mark Adler's avatar Mark Adler
Browse files

Fix bug when window full in deflate_stored().

parent 2d80d3f6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment