commit | 8ba393e70d984d902b15b9e6876f4d0d38ae4be8 | [log] [tgz] |
---|---|---|
author | Mark Adler <madler@alumni.caltech.edu> | Sat Jan 21 12:13:25 2017 -0800 |
committer | Mark Adler <madler@alumni.caltech.edu> | Wed Feb 15 22:39:25 2017 -0800 |
tree | 32e18be4336dae62c33ecdde35cca16c564924f1 | |
parent | 2d80d3f6b52f9fa454c26c89d2d6a1790e1cecb0 [diff] |
Fix bug when window full in deflate_stored().
diff --git a/deflate.c b/deflate.c index d368b25..e97bd87 100644 --- a/deflate.c +++ b/deflate.c
@@ -1775,7 +1775,7 @@ 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;