On Tue, 2005-09-27 at 22:44 -0400, Nathan Folkman wrote:
> Any chance you could provide a full trace? 

Even better.  Here is a diff.  

Daniel

#####################


--- compress.c.orig      2005-09-27 20:03:58.000000000 -0700
+++ compress.c  2005-09-28 08:35:26.436378709 -0700
@@ -94,6 +94,7 @@
     if (compress2(gbuf + skip, &glen, buf, (uLong) len, level) != Z_OK) {
         return NS_ERROR;
     }
+    glen -= 4;
     memcpy(gbuf, header, sizeof(header));
     Tcl_DStringSetLength(outPtr, (int) glen + skip);

@@ -103,8 +104,8 @@

     crc = crc32(0, Z_NULL, 0);
     crc = crc32(crc, buf, (uInt) len);
-    footer[0] = htonl(crc);
-    footer[1] = htonl(len);
+    footer[0] = crc;
+    footer[1] = len;
     Tcl_DStringAppend(outPtr, (char *) footer, sizeof(footer));
     return NS_OK;
 #endif


-- 
| ---------------------------------------------------------------
| Daniel P. Stasinski         | http://www.disabilities-r-us.com/
| [EMAIL PROTECTED]        | http://www.scriptkitties.com/
| --------------------------- | ---------------------------------
| Jabber: [EMAIL PROTECTED] | Google Talk: mooooooo


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to