Changed compression init
This commit is contained in:
parent
6e7840fcac
commit
0bc438e2fd
@ -20,6 +20,8 @@ v0.71.4 12-Aug-2005
|
|||||||
way how FTN kludges are translated to RFC headers.
|
way how FTN kludges are translated to RFC headers.
|
||||||
Dropped support for newsgroup distribution.
|
Dropped support for newsgroup distribution.
|
||||||
In tic processing changed pointer type for seenby lists.
|
In tic processing changed pointer type for seenby lists.
|
||||||
|
Fixed running out of file descriptors when there are lots of
|
||||||
|
bad mailpackets.
|
||||||
|
|
||||||
mbsebbs:
|
mbsebbs:
|
||||||
Fixed headerlines for posting news.
|
Fixed headerlines for posting news.
|
||||||
@ -28,6 +30,10 @@ v0.71.4 12-Aug-2005
|
|||||||
mbnntp:
|
mbnntp:
|
||||||
Improved charset detection.
|
Improved charset detection.
|
||||||
|
|
||||||
|
mbcico:
|
||||||
|
Changed compression init functions to fix mysterious crashes
|
||||||
|
on some systems.
|
||||||
|
|
||||||
mbsetup:
|
mbsetup:
|
||||||
Dropped support for newsgroup distribution.
|
Dropped support for newsgroup distribution.
|
||||||
|
|
||||||
|
@ -1267,10 +1267,7 @@ TrType binkp_receiver(void)
|
|||||||
/*
|
/*
|
||||||
* Receive stream compressed data
|
* Receive stream compressed data
|
||||||
*/
|
*/
|
||||||
Syslog('b', "enter receive stream");
|
|
||||||
|
|
||||||
if (z_idata == NULL) {
|
if (z_idata == NULL) {
|
||||||
Syslog('b', "decompress_init begins");
|
|
||||||
if (decompress_init(bp.rmode)) {
|
if (decompress_init(bp.rmode)) {
|
||||||
Syslog('+', "Binkp: can't init decompress");
|
Syslog('+', "Binkp: can't init decompress");
|
||||||
bp.RxState = RxDone;
|
bp.RxState = RxDone;
|
||||||
@ -1286,7 +1283,7 @@ Syslog('b', "decompress_init begins");
|
|||||||
Syslog('+', "Binkp: decompress %s error %d", bp.rname, rc1);
|
Syslog('+', "Binkp: decompress %s error %d", bp.rname, rc1);
|
||||||
bp.RxState = RxDone;
|
bp.RxState = RxDone;
|
||||||
return Failure;
|
return Failure;
|
||||||
} else {
|
// } else {
|
||||||
// Syslog('b', "Binkp: %d bytes of data decompressed to %d", nput, zavail);
|
// Syslog('b', "Binkp: %d bytes of data decompressed to %d", nput, zavail);
|
||||||
}
|
}
|
||||||
if (zavail != 0 && fwrite(zbuf, zavail, 1, bp.rxfp) < 1) {
|
if (zavail != 0 && fwrite(zbuf, zavail, 1, bp.rxfp) < 1) {
|
||||||
@ -2862,14 +2859,11 @@ int decompress_init(int type)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_ZLIB_H
|
#ifdef HAVE_ZLIB_H
|
||||||
case CompGZ: {
|
case CompGZ: {
|
||||||
Syslog('b', "init start %d", sizeof(z_stream));
|
|
||||||
z_idata = calloc(1, sizeof(z_stream));
|
z_idata = calloc(1, sizeof(z_stream));
|
||||||
Syslog('b', "data calloc done");
|
|
||||||
if (z_idata == NULL) {
|
if (z_idata == NULL) {
|
||||||
Syslog('+', "Binkp: decompress_init: not enough memory (%lu needed)", sizeof(z_stream));
|
Syslog('+', "Binkp: decompress_init: not enough memory (%lu needed)", sizeof(z_stream));
|
||||||
return Z_MEM_ERROR;
|
return Z_MEM_ERROR;
|
||||||
}
|
}
|
||||||
Syslog('b', "begin inflateInit");
|
|
||||||
return inflateInit((z_stream *)z_idata);
|
return inflateInit((z_stream *)z_idata);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user