aboutsummaryrefslogtreecommitdiffstats
path: root/nametoaddr.c
diff options
context:
space:
mode:
authorguy <guy>2001-07-28 22:56:34 +0000
committerguy <guy>2001-07-28 22:56:34 +0000
commitb92ebafe8ea74167b21c945bc914440c9416ee67 (patch)
tree0b1f38a3ab5302e68797fa44ac7c941691b9a193 /nametoaddr.c
parent7fd1de18e73485a979eb7e911c91d15c59b6ed52 (diff)
Cast the argument to <ctype.h> macros to "unsigned char", to eliminate
GCC warnings and to keep the macros from referring outside an array when handed bytes with the 8th bit set.
Diffstat (limited to 'nametoaddr.c')
-rw-r--r--nametoaddr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nametoaddr.c b/nametoaddr.c
index 63e14ac..d9a0389 100644
--- a/nametoaddr.c
+++ b/nametoaddr.c
@@ -24,7 +24,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/libpcap/nametoaddr.c,v 1.59 2001-06-27 05:11:48 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/nametoaddr.c,v 1.60 2001-07-28 22:56:35 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -313,7 +313,7 @@ pcap_ether_aton(const char *s)
if (*s == ':')
s += 1;
d = xdtoi(*s++);
- if (isxdigit(*s)) {
+ if (isxdigit((unsigned char)*s)) {
d <<= 4;
d |= xdtoi(*s++);
}