Ethereal-dev: [Ethereal-dev] SoulSeek Dissector breaks MSVC build

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

From: "Anders Broman (TN/EAB)" <anders.broman@xxxxxxxxxxxx>
Date: Thu, 12 Feb 2004 10:15:18 +0100
Hi,
I get the following errors when compiling todays cvs-tarball.
Best regards
Anders


packet-slsk.c
packet-slsk.c(307) : error C2057: expected constant expression
packet-slsk.c(307) : error C2466: cannot allocate an array of con
packet-slsk.c(307) : error C2133: 'compr' : unknown size
packet-slsk.c(310) : error C2057: expected constant expression
packet-slsk.c(310) : error C2466: cannot allocate an array of con
packet-slsk.c(310) : error C2133: 'uncompr' : unknown size

Line 307: 	char compr[comprlen
---- snip ---
#ifdef HAVE_LIBZ
static tvbuff_t* uncompress_packet(tvbuff_t *tvb, int offset, int comprlen){
	
	/*
	* Uncompresses a zlib compressed packet inside a message of tvb at offset with length comprlen
	* Returns an uncompressed tvbuffer if uncompression succeeded
	*             or NULL if uncompression failed
	*/
	
	char compr[comprlen];
	int i = 0;
	long uncomprlen = (comprlen*10);
	char uncompr[uncomprlen];
	int err = 0;
	tvbuff_t *uncompr_tvb;
---- snip ---

This communication is confidential and intended solely for the addressee(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you.

E-mail including attachments is susceptible to data corruption, interruption, unauthorized amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof.