summaryrefslogtreecommitdiff
path: root/print-rip.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-02-02 15:17:06 -0800
committerGuy Harris <guy@alum.mit.edu>2014-02-02 15:17:06 -0800
commit3454732513abdbd1490c6107a94c6474f71a74d2 (patch)
treebf0126f8412e8bb2144268691c4c6adc2342559f /print-rip.c
parent89e2444c8b41776ad96c7a4c90a7bc030165c259 (diff)
downloadtcpdump-3454732513abdbd1490c6107a94c6474f71a74d2.tar.gz
Do our own isascii(), isprint(), isgraph(), and toascii().
We do *not* want the behavior of isprint() and isgraph() to be locale-dependent - we want both of them to return "true" only for ASCII characters. We have to do our own isascii() and toascii() on non-UN*X systems anyway, so let's just do all of them ourselves.
Diffstat (limited to 'print-rip.c')
-rw-r--r--print-rip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-rip.c b/print-rip.c
index dbda1462..b1931a63 100644
--- a/print-rip.c
+++ b/print-rip.c
@@ -135,7 +135,7 @@ rip_entry_print_v2(register const struct rip_netinfo *ni, const unsigned remaini
u_int i = 0;
printf("\n\t Simple Text Authentication data: ");
for (; i < RIP_AUTHLEN; p++, i++)
- putchar (isprint(*p) ? *p : '.');
+ putchar (ND_ISPRINT(*p) ? *p : '.');
} else if (auth_type == 3) {
printf("\n\t Auth header:");
printf(" Packet Len %u,", EXTRACT_16BITS((u_int8_t *)ni + 4));