r14848: use the constant instead of the interger value
[bbaumbach/samba-autobuild/.git] / source4 / lib / compression / mszip.c
index 97b53f56ad0461453f5e44129eca3805a6c839d1..7a6371528c8863b9d8bb6bf4801f0fc579d770ff 100644 (file)
@@ -341,7 +341,7 @@ static int32_t Zipinflate_codes(struct decomp_state *decomp_state,
         ZIPNEEDBITS(e)
       } while ((e = (t = t->v.t + ((uint32_t)b & Zipmask[e]))->e) > 16);
     ZIPDUMPBITS(t->b)
-    if (w >= 32768) break;
+    if (w >= CAB_BLOCKMAX) break;
     if (e == 16)                /* then it's a literal */
       CAB(outbuf)[w++] = (uint8_t)t->v.n;
     else                        /* it's an EOB or a length */