Use unsigned chars instead of signed chars when extracting bits of the
inet address.
This commit is contained in:
parent
cea1d019fe
commit
f7506f876c
@ -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