summaryrefslogtreecommitdiff
path: root/print-tcp.c
diff options
context:
space:
mode:
authoritojun <itojun>2001-01-28 08:06:06 +0000
committeritojun <itojun>2001-01-28 08:06:06 +0000
commita026f89efc46c6ffc87f5bce5af33357d6570a99 (patch)
tree174f34006bfde2b54148ab4b3216c4b2ed4517db /print-tcp.c
parent000a90c61ae2850e0b9908b19d6840947a3184ff (diff)
downloadtcpdump-a026f89efc46c6ffc87f5bce5af33357d6570a99.tar.gz
use safeputchar() instead of cook up on its own.
Diffstat (limited to 'print-tcp.c')
-rw-r--r--print-tcp.c7
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(']');
}