summaryrefslogtreecommitdiff
path: root/devel/zlib/patches/patch-ab
blob: af636eb29ff57009a522d9c8f7b1b1e597bb2827 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ab,v 1.5 2005/07/07 10:43:19 drochner Exp $

--- inftrees.c.orig	2005-07-07 12:31:09.000000000 +0200
+++ 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 */