Ethereal-dev: [Ethereal-dev] FW: [PATCH] Fixed Ethereal MMSE strings w/specified charset

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

From: Tom Uijldert <Tom.Uijldert@xxxxxxx>
Date: Mon, 5 Aug 2002 08:46:04 +0200

> -----Original Message-----
> From: Jan Kratochvil [mailto:short@xxxxxx]
> Sent: Sunday, August 04, 2002 12:03 AM
> To: Tom Uijldert
> Subject: [PATCH] Fixed Ethereal MMSE strings w/specified charset
> 
> 
> Hi,
> 
> Attached is a trivia patch.
> 
> VERY SPECIAL THANKS for this tool, it now (almost - in a 
> moment) solved all my
> problems, Ethereal is very super perfect tool beyond all my 
> imaginations!  :-)
> 
> 
> Best Regards,
> Jan "Lace" Kratochvil
> 

--- ethereal-2002-08-03/packet-mmse.c-orig	Sat Aug  3 01:35:54 2002
+++ ethereal-2002-08-03/packet-mmse.c	Sat Aug  3 23:55:42 2002
@@ -263,7 +263,7 @@ get_encoded_strval(tvbuff_t *tvb, guint 
 	/* \todo	Something with "Char-set", skip for now	*/
 	tvb_memcpy(tvb, strval, offset + count + 1, length - 1);
 	strval[length - 1] = '\0';	/* Just to make sure	*/
-	return offset + count + length;
+	return count + length;
     } else
 	return get_text_string(tvb, offset, strval);
 }