Use unsigned chars instead of signed chars when extracting bits of the

inet address.
This commit is contained in:
dfr 1998-09-23 21:35:40 +00:00
parent 7fdf235da0
commit 7c71d4162d

View File

@ -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);