summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-04-01 08:12:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:59:42 -0500
commit7e36116fe890756ca76d9153c668e8a42eb6914e (patch)
tree0cf31c5eb86d721363104dbbffba48e496a5c59a /source4/lib
parent986aae3c5c58b6979e0fddaa15f4ca11b09f393d (diff)
downloadsamba-7e36116fe890756ca76d9153c668e8a42eb6914e.tar.gz
samba-7e36116fe890756ca76d9153c668e8a42eb6914e.tar.bz2
samba-7e36116fe890756ca76d9153c668e8a42eb6914e.zip
r14848: use the constant instead of the interger value
metze (This used to be commit 6386fd69303f8a2362c3b967796010ded798511e)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/compression/mszip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/compression/mszip.c b/source4/lib/compression/mszip.c
index 97b53f56ad..7a6371528c 100644
--- a/source4/lib/compression/mszip.c
+++ b/source4/lib/compression/mszip.c
@@ -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 */