18ebd1c
diff -up tcpslice-1.2a3/tcpslice.c.orig tcpslice-1.2a3/tcpslice.c
18ebd1c
--- tcpslice-1.2a3/tcpslice.c.orig	2005-10-25 00:06:26.000000000 +0200
18ebd1c
+++ tcpslice-1.2a3/tcpslice.c	2011-08-24 13:12:53.215962428 +0200
18ebd1c
@@ -404,7 +404,9 @@ fill_tm(char *time_string, int is_delta,
18ebd1c
 
18ebd1c
 		while (isdigit(*t_stop))
18ebd1c
 			++t_stop;
18ebd1c
-		if (! t_stop)
18ebd1c
+		
18ebd1c
+        if (!(*t_stop))
18ebd1c
+            /* we've reached end of string -> bad date format */
18ebd1c
 			error("bad date format %s, problem starting at %s",
18ebd1c
 			      time_string, t_start);
18ebd1c