From 965fe72aed580d518c979c9a33b49e7df28205f7 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 9 Sep 2011 23:19:55 -0700 Subject: zlib 1.1.0 --- inflate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'inflate.c') diff --git a/inflate.c b/inflate.c index 7b9bc3b..32e9b8d 100644 --- a/inflate.c +++ b/inflate.c @@ -229,6 +229,7 @@ int f; r = f; if (r != Z_STREAM_END) return r; + r = f; inflate_blocks_reset(z->state->blocks, z, &z->state->sub.check.was); if (z->state->nowrap) { @@ -322,7 +323,8 @@ z_streamp z; /* search */ while (n && m < 4) { - if (*p == (Byte)(m < 2 ? 0 : (Byte)0xff)) + static const Byte mark[4] = {0, 0, 0xff, 0xff}; + if (*p == mark[m]) m++; else if (*p) m = 0; -- cgit v1.2.3-55-g6feb