18ebd1c2d9
Fix manpage (#663739) Fix improper handling of bad date format in tcpslice (#684005) Spec file clean up
15 lines
511 B
Diff
15 lines
511 B
Diff
diff -up tcpslice-1.2a3/tcpslice.c.orig tcpslice-1.2a3/tcpslice.c
|
|
--- tcpslice-1.2a3/tcpslice.c.orig 2005-10-25 00:06:26.000000000 +0200
|
|
+++ tcpslice-1.2a3/tcpslice.c 2011-08-24 13:12:53.215962428 +0200
|
|
@@ -404,7 +404,9 @@ fill_tm(char *time_string, int is_delta,
|
|
|
|
while (isdigit(*t_stop))
|
|
++t_stop;
|
|
- if (! t_stop)
|
|
+
|
|
+ if (!(*t_stop))
|
|
+ /* we've reached end of string -> bad date format */
|
|
error("bad date format %s, problem starting at %s",
|
|
time_string, t_start);
|
|
|