From a0a69739271f47d0a488aad6440b2b4423515ad0 Mon Sep 17 00:00:00 2001 From: mmcc Date: Sat, 24 Oct 2015 06:07:43 +0000 Subject: [PATCH] Cast isxdigit()'s argument to unsigned char. ok guenther@ --- lib/libpcap/nametoaddr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libpcap/nametoaddr.c b/lib/libpcap/nametoaddr.c index ef98b504e8a..9013d68bb94 100644 --- a/lib/libpcap/nametoaddr.c +++ b/lib/libpcap/nametoaddr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nametoaddr.c,v 1.16 2015/01/16 03:19:57 lteo Exp $ */ +/* $OpenBSD: nametoaddr.c,v 1.17 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++); } -- 2.20.1