From 9378cff4b0ab89c50e159f43d7eb9bbf429b25ab Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 28 Oct 2005 07:29:08 +0000 Subject: Apply FC4's zlib-1.2.2.2-can-2005-2096.patch --- cpukit/zlib/inftrees.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/zlib/inftrees.c') diff --git a/cpukit/zlib/inftrees.c b/cpukit/zlib/inftrees.c index 72c5b75973..e5a934980f 100644 --- a/cpukit/zlib/inftrees.c +++ b/cpukit/zlib/inftrees.c @@ -134,7 +134,7 @@ unsigned short FAR *work; left -= count[len]; if (left < 0) return -1; /* over-subscribed */ } - if (left > 0 && (type == CODES || (codes - count[0] != 1))) + if (left > 0 && (type == CODES || max != 1)) return -1; /* incomplete set */ /* generate offsets into symbol table for each length for sorting */ -- cgit v1.2.3