artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8d7090
)
Cast isxdigit()'s argument to unsigned char.
author
mmcc
<mmcc@openbsd.org>
Sat, 24 Oct 2015 06:07:43 +0000
(06:07 +0000)
committer
mmcc
<mmcc@openbsd.org>
Sat, 24 Oct 2015 06:07:43 +0000
(06:07 +0000)
ok guenther@
lib/libpcap/nametoaddr.c
patch
|
blob
|
history
diff --git
a/lib/libpcap/nametoaddr.c
b/lib/libpcap/nametoaddr.c
index
ef98b50
..
9013d68
100644
(file)
--- a/
lib/libpcap/nametoaddr.c
+++ b/
lib/libpcap/nametoaddr.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: nametoaddr.c,v 1.1
6 2015/01/16 03:19:57 lteo
Exp $ */
+/* $OpenBSD: nametoaddr.c,v 1.1
7 2015/10/24 06:07:43 mmcc
Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996
@@
-324,7
+324,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++);
}