Skip to content

Commit 8ba393e

Browse files
committed
Fix bug when window full in deflate_stored().
1 parent 2d80d3f commit 8ba393e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deflate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1775,7 +1775,7 @@ local block_state deflate_stored(s, flush)
17751775
return block_done;
17761776

17771777
/* Fill the window with any remaining input. */
1778-
have = s->window_size - s->strstart - 1;
1778+
have = s->window_size - s->strstart;
17791779
if (s->strm->avail_in > have && s->block_start >= (long)s->w_size) {
17801780
/* Slide the window down. */
17811781
s->block_start -= s->w_size;

0 commit comments

Comments
 (0)