Index: /trunk/tools/tracesplit/tracesplit.c
===================================================================
--- /trunk/tools/tracesplit/tracesplit.c	(revision 949)
+++ /trunk/tools/tracesplit/tracesplit.c	(revision 950)
@@ -182,4 +182,13 @@
 		}
 
+		/* Some traces we have are padded (usually with 0x00), so 
+		 * lets sort that out now and truncate them properly
+		 */
+
+		if (trace_get_capture_length(packet) 
+			> trace_get_wire_length(packet)) {
+			trace_set_capture_length(packet,trace_get_wire_length(packet));
+		}
+
 		if (trace_write_packet(output,packet)==-1) {
 			trace_perror_output(output,"write_packet");
