Ethereal-dev: [Ethereal-dev] packet-mmse.c patch for correct delivery times

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

From: Darren Steele <steeley@xxxxxxxxxxxxx>
Date: Sat, 5 Jul 2003 17:57:50 +0100
Hi all,

I hope this is the correct list to mail patches to.  Oh well, too late now!

This patch fixes the Delivery Time display problem for MMS Encapsulated 
messages.

Regards,

Darren Steele.
Index: packet-mmse.c
===================================================================
RCS file: /cvsroot/ethereal/packet-mmse.c,v
retrieving revision 1.18
diff -u -r1.18 packet-mmse.c
--- packet-mmse.c	8 Jun 2003 16:06:04 -0000	1.18
+++ packet-mmse.c	5 Jul 2003 16:41:51 -0000
@@ -448,9 +448,10 @@
 			nstime_t	 tmptime;
 			guint		 cnt;
 
-			tval =  get_long_integer(tvb, offset + count, &cnt);
+			tval =  get_long_integer(tvb, offset + count + 1, &cnt);
 			tmptime.secs = tval;
 			tmptime.nsecs = 0;
+
 			if (field == 0x80)
 			    proto_tree_add_time(mmse_tree,
 					        hf_mmse_delivery_time_abs,