From 7c71d4162d769d7daec9276d7b435bc367f87866 Mon Sep 17 00:00:00 2001 From: dfr Date: Wed, 23 Sep 1998 21:35:40 +0000 Subject: [PATCH] Use unsigned chars instead of signed chars when extracting bits of the inet address. --- lib/libstand/inet_ntoa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libstand/inet_ntoa.c b/lib/libstand/inet_ntoa.c index 59539873c8c5..c7efb0a3f61d 100644 --- a/lib/libstand/inet_ntoa.c +++ b/lib/libstand/inet_ntoa.c @@ -51,7 +51,7 @@ inet_ntoa(in) { static const char fmt[] = "%u.%u.%u.%u"; static char ret[sizeof "255.255.255.255"]; - char *src = (char *) ∈ + unsigned char *src = (unsigned char *) ∈ sprintf(ret, fmt, src[0], src[1], src[2], src[3]); return (ret);