--- ../../src/wrapper.c.orig Thu Dec 18 22:43:08 2003 +++ ../../src/wrapper.c Wed Feb 16 10:09:17 2005 @@ -44,13 +44,15 @@ } if(!logstream) /* secure: we have no open stream*/ flag = FALSE; - va_start(ap, format); if(flag) { + va_start(ap, format); vfprintf(stdout, format, ap); + va_end(ap); + va_start(ap, format); vfprintf(logstream, format, ap); + va_end(ap); } - va_end(ap); fflush(logstream); #endif --- ../../src/uncompr.c.orig Sun Nov 30 22:59:30 2003 +++ ../../src/uncompr.c Wed Feb 16 22:11:32 2005 @@ -39,7 +39,7 @@ stream.next_out = dest; stream.avail_out = (uInt)*destLen; - if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR; + if ((uLong)stream.avail_out != (uInt)*destLen) return Z_BUF_ERROR; stream.zalloc = (alloc_func)0; stream.zfree = (free_func)0;