socket: prevent signed integer overflow

src/core/socket.c:588:25: error: overflow in implicit constant conversion
src/core/socket.c:589:17: error: overflow in implicit constant conversion
This commit is contained in:
Dave Reisner 2012-09-15 12:58:48 -04:00 committed by Zbigniew Jędrzejewski-Szmek
parent 89154bd4ac
commit c65a0b1466
1 changed files with 1 additions and 1 deletions

View File

@ -584,7 +584,7 @@ static int instance_from_socket(int fd, unsigned nr, char **instance) {
}
case AF_INET6: {
static const char ipv4_prefix[] = {
static const unsigned char ipv4_prefix[] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xFF, 0xFF
};