Use unsigned chars instead of signed chars when extracting bits of the
inet address.
This commit is contained in:
parent
7fdf235da0
commit
7c71d4162d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user