From 1492b4b2b20d6dddc5eb22909a6853b0e96a50c5 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 2 Jan 2005 08:49:47 +0000 Subject: [PATCH] The deflate_stored() function needed to support Z_INSERT_ONLY. --- zlib/deflate.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zlib/deflate.c b/zlib/deflate.c index 74f67cfe..20209df4 100644 --- a/zlib/deflate.c +++ b/zlib/deflate.c @@ -1092,6 +1092,11 @@ local block_state deflate_stored(s, flush) max_block_size = s->pending_buf_size - 5; } + if (flush == Z_INSERT_ONLY) { + s->block_start = s->strstart; + return need_more; + } + /* Copy as much as possible from input to output: */ for (;;) { /* Fill the window as much as possible: */ -- 2.34.1