aboutsummaryrefslogtreecommitdiff
path: root/deflate.c
diff options
context:
space:
mode:
Diffstat (limited to 'deflate.c')
-rw-r--r--deflate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/deflate.c b/deflate.c
index 0aa020e..8a1a91e 100644
--- a/deflate.c
+++ b/deflate.c
@@ -1756,6 +1756,8 @@ local block_state deflate_stored(s, flush)
1756 s->block_start = s->strstart; 1756 s->block_start = s->strstart;
1757 s->insert += MIN(used, s->w_size - s->insert); 1757 s->insert += MIN(used, s->w_size - s->insert);
1758 } 1758 }
1759 if (s->high_water < s->strstart)
1760 s->high_water = s->strstart;
1759 1761
1760 /* If the last block was written to next_out, then done. */ 1762 /* If the last block was written to next_out, then done. */
1761 if (last) 1763 if (last)
@@ -1783,6 +1785,8 @@ local block_state deflate_stored(s, flush)
1783 read_buf(s->strm, s->window + s->strstart, have); 1785 read_buf(s->strm, s->window + s->strstart, have);
1784 s->strstart += have; 1786 s->strstart += have;
1785 } 1787 }
1788 if (s->high_water < s->strstart)
1789 s->high_water = s->strstart;
1786 1790
1787 /* There was not enough avail_out to write a complete worthy or flushed 1791 /* There was not enough avail_out to write a complete worthy or flushed
1788 * stored block to next_out. Write a stored block to pending instead, if we 1792 * stored block to next_out. Write a stored block to pending instead, if we