diff options
Diffstat (limited to 'contrib/infback9/inftree9.c')
-rw-r--r-- | contrib/infback9/inftree9.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/infback9/inftree9.c b/contrib/infback9/inftree9.c index 9e37840..0993f75 100644 --- a/contrib/infback9/inftree9.c +++ b/contrib/infback9/inftree9.c | |||
@@ -9,7 +9,7 @@ | |||
9 | #define MAXBITS 15 | 9 | #define MAXBITS 15 |
10 | 10 | ||
11 | const char inflate9_copyright[] = | 11 | const char inflate9_copyright[] = |
12 | " inflate9 1.2.2.4 Copyright 1995-2005 Mark Adler "; | 12 | " inflate9 1.2.3 Copyright 1995-2005 Mark Adler "; |
13 | /* | 13 | /* |
14 | If you use the zlib library in a product, an acknowledgment is welcome | 14 | If you use the zlib library in a product, an acknowledgment is welcome |
15 | in the documentation of your product. If for some reason you cannot | 15 | in the documentation of your product. If for some reason you cannot |
@@ -64,7 +64,7 @@ unsigned short FAR *work; | |||
64 | static const unsigned short lext[31] = { /* Length codes 257..285 extra */ | 64 | static const unsigned short lext[31] = { /* Length codes 257..285 extra */ |
65 | 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, | 65 | 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, |
66 | 130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132, | 66 | 130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132, |
67 | 133, 133, 133, 133, 144, 206, 69}; | 67 | 133, 133, 133, 133, 144, 201, 196}; |
68 | static const unsigned short dbase[32] = { /* Distance codes 0..31 base */ | 68 | static const unsigned short dbase[32] = { /* Distance codes 0..31 base */ |
69 | 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, | 69 | 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, |
70 | 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, | 70 | 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, |
@@ -128,7 +128,7 @@ unsigned short FAR *work; | |||
128 | left -= count[len]; | 128 | left -= count[len]; |
129 | if (left < 0) return -1; /* over-subscribed */ | 129 | if (left < 0) return -1; /* over-subscribed */ |
130 | } | 130 | } |
131 | if (left > 0 && (type == CODES || (codes - count[0] != 1))) | 131 | if (left > 0 && (type == CODES || max != 1)) |
132 | return -1; /* incomplete set */ | 132 | return -1; /* incomplete set */ |
133 | 133 | ||
134 | /* generate offsets into symbol table for each length for sorting */ | 134 | /* generate offsets into symbol table for each length for sorting */ |