X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/674d23116f3e0a6fb56c0a2c66b302c04568618d..229cf9681b91f1dfa150dba39ace90fc99b2b302:/print-tcp.c diff --git a/print-tcp.c b/print-tcp.c index 225b6cc3..56cbe57d 100644 --- a/print-tcp.c +++ b/print-tcp.c @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] _U_ = -"@(#) $Header: /tcpdump/master/tcpdump/print-tcp.c,v 1.128 2007-01-29 19:19:51 hannes Exp $ (LBL)"; +"@(#) $Header: /tcpdump/master/tcpdump/print-tcp.c,v 1.129 2007-04-03 20:02:56 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -463,7 +463,8 @@ tcp_print(register const u_char *bp, register u_int length, cp = (const u_char *)tp + sizeof(*tp); printf(", options ["); while (hlen > 0) { - putchar(ch); + if (ch != '\0') + putchar(ch); TCHECK(*cp); opt = *cp++; if (ZEROLENOPT(opt))