diff -urN --exclude CVS zlib.orig/Portfile zlib/Portfile
old
|
new
|
|
3 | 3 | PortSystem 1.0 |
4 | 4 | name zlib |
5 | 5 | version 1.2.2 |
6 | | revision 1 |
| 6 | revision 2 |
7 | 7 | categories archivers |
8 | 8 | maintainers landonf@opendarwin.org |
9 | 9 | description zlib lossless data-compression library |
… |
… |
|
19 | 19 | use_bzip2 yes |
20 | 20 | checksums md5 1b8aab042d40979e456194c468fd72c5 |
21 | 21 | |
22 | | patchfiles patch-configure |
| 22 | patchfiles patch-configure \ |
| 23 | patch-inftrees.c |
23 | 24 | |
24 | 25 | configure.args --shared |
25 | 26 | |
diff -urN --exclude CVS zlib.orig/files/patch-inftrees.c zlib/files/patch-inftrees.c
old
|
new
|
|
| 1 | --- inftrees.c.orig 2005-07-07 12:31:09.000000000 +0200 |
| 2 | +++ inftrees.c |
| 3 | @@ -134,7 +134,7 @@ unsigned short FAR *work; |
| 4 | left -= count[len]; |
| 5 | if (left < 0) return -1; /* over-subscribed */ |
| 6 | } |
| 7 | - if (left > 0 && (type == CODES || (codes - count[0] != 1))) |
| 8 | + if (left > 0 && (type == CODES || max != 1)) |
| 9 | return -1; /* incomplete set */ |
| 10 | |
| 11 | /* generate offsets into symbol table for each length for sorting */ |