Ethereal-dev: Re: [Ethereal-dev] HTTP gzip/deflate decompression patch

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Kendy Kutzner <kutzner@xxxxxxxxx>
Date: Thu, 6 May 2004 13:37:16 +0200
On 2004-05-05T22:41:46+0200, Olivier Biot wrote:
> Regarding the libz/zlib issues, is it a missing include directory?

No, it was an old config.h still flying around in epan/

Attached is a small patch for epan/tvbuff.c. Should the variable
Bytef *c checked to be inside the tvbuf?

Kendy

-- 

Index: epan/tvbuff.c
===================================================================
RCS file: /cvsroot/ethereal/epan/tvbuff.c,v
retrieving revision 1.62
diff -u -r1.62 tvbuff.c
--- epan/tvbuff.c	5 May 2004 06:55:09 -0000	1.62
+++ epan/tvbuff.c	6 May 2004 11:18:43 -0000
@@ -2308,7 +2308,7 @@
 			if (flags & 0x3) {
 				/* A null terminated filename */
 
-				while (*c != NULL) {
+				while (*c != '\0') {
 					c++;
 				}
 
@@ -2318,7 +2318,7 @@
 			if (flags & 0x4) {
 				/* A null terminated comment */
 				
-				while (*c != NULL) {
+				while (*c != '\0') {
 					c++;
 				}
 

Attachment: pgpAUA_LSQFEn.pgp
Description: PGP signature