diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-02-02 15:17:06 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-02-02 15:17:06 -0800 |
commit | 3454732513abdbd1490c6107a94c6474f71a74d2 (patch) | |
tree | bf0126f8412e8bb2144268691c4c6adc2342559f /parsenfsfh.c | |
parent | 89e2444c8b41776ad96c7a4c90a7bc030165c259 (diff) | |
download | tcpdump-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 'parsenfsfh.c')
-rw-r--r-- | parsenfsfh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parsenfsfh.c b/parsenfsfh.c index 923b063a..6240e0df 100644 --- a/parsenfsfh.c +++ b/parsenfsfh.c @@ -452,7 +452,7 @@ const unsigned char *fhp; int seen_null = 0; for (i = 1; i < 14; i++) { - if (isprint(fhp[i])) { + if (ND_ISPRINT(fhp[i])) { if (seen_null) return(0); else |