summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-09-15 12:58:48 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-09-16 16:55:46 +0200
commitc65a0b146652cac52fe3c43f7cb8fe6a2ac3e063 (patch)
treea6161138f7ed2680c76e63ae614ffc602cda4b8c /src
parent89154bd4ac71157e382bacdc4dc3a96990940d36 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/core/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/socket.c b/src/core/socket.c
index cbbfb0cd3a..f975a4333d 100644
--- a/src/core/socket.c
+++ b/src/core/socket.c
@@ -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
};