From e02248020225a231329f3b094c693b0cfdd1d442 Mon Sep 17 00:00:00 2001 From: mmcc Date: Mon, 26 Oct 2015 02:33:07 +0000 Subject: [PATCH] Cast isdigit()'s argument to unsigned char. ok guenther@ --- sys/lib/libsa/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/lib/libsa/net.c b/sys/lib/libsa/net.c index cd9f671c2b5..f2ccb462475 100644 --- a/sys/lib/libsa/net.c +++ b/sys/lib/libsa/net.c @@ -1,4 +1,4 @@ -/* $OpenBSD: net.c,v 1.18 2015/07/16 16:12:15 mpi Exp $ */ +/* $OpenBSD: net.c,v 1.19 2015/10/26 02:33:07 mmcc Exp $ */ /* $NetBSD: net.c,v 1.14 1996/10/13 02:29:02 christos Exp $ */ /* @@ -233,7 +233,7 @@ intoa(u_int32_t addr) static const char * number(const char *s, int *n) { - for (*n = 0; isdigit(*s); s++) + for (*n = 0; isdigit((unsigned char)*s); s++) *n = (*n * 10) + *s - '0'; return s; } -- 2.20.1