summaryrefslogtreecommitdiff
path: root/inflate.c
diff options
context:
space:
mode:
Diffstat (limited to 'inflate.c')
-rw-r--r--inflate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/inflate.c b/inflate.c
index 5bdd997..3cff366 100644
--- a/inflate.c
+++ b/inflate.c
@@ -321,7 +321,8 @@ z_streamp z;
321 /* search */ 321 /* search */
322 while (n && m < 4) 322 while (n && m < 4)
323 { 323 {
324 if (*p == (Byte)(m < 2 ? 0 : 0xff)) 324 static const Byte mark[4] = {0, 0, 0xff, 0xff};
325 if (*p == mark[m])
325 m++; 326 m++;
326 else if (*p) 327 else if (*p)
327 m = 0; 328 m = 0;