diff options
author | itojun <itojun> | 2001-01-28 08:06:06 +0000 |
---|---|---|
committer | itojun <itojun> | 2001-01-28 08:06:06 +0000 |
commit | a026f89efc46c6ffc87f5bce5af33357d6570a99 (patch) | |
tree | 174f34006bfde2b54148ab4b3216c4b2ed4517db /print-tcp.c | |
parent | 000a90c61ae2850e0b9908b19d6840947a3184ff (diff) | |
download | tcpdump-a026f89efc46c6ffc87f5bce5af33357d6570a99.tar.gz |
use safeputchar() instead of cook up on its own.
Diffstat (limited to 'print-tcp.c')
-rw-r--r-- | print-tcp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/print-tcp.c b/print-tcp.c index 9cc707fc..1ea138ed 100644 --- a/print-tcp.c +++ b/print-tcp.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-tcp.c,v 1.81 2000-12-23 20:55:22 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-tcp.c,v 1.82 2001-01-28 08:06:07 itojun Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -697,10 +697,7 @@ print_tcp_rst_data(register const u_char *sp, u_int length) putchar(' '); while (length-- && sp <= snapend) { c = *sp++; - if (isprint(c)) - putchar(c); - else - putchar('.'); + safeputchar(c); } putchar(']'); } |