From 85a206d3e0fd7f491c15cd2ab8e0df58fa9f7897 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 4 Dec 2010 23:13:35 -0600 Subject: [PATCH] Use %u instead of %d. --- src/blacklist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blacklist.c b/src/blacklist.c index 3138e7e0..7b09fe15 100644 --- a/src/blacklist.c +++ b/src/blacklist.c @@ -129,7 +129,7 @@ static void initiate_blacklist_dnsquery(struct Blacklist *blptr, struct Client * ip = (uint8_t *)&((struct sockaddr_in *)&client_p->localClient->ip)->sin_addr.s_addr; /* becomes 2.0.0.127.torbl.ahbl.org or whatever */ - rb_snprintf(buf, sizeof buf, "%d.%d.%d.%d.%s", + rb_snprintf(buf, sizeof buf, "%u.%u.%u.%u.%s", (unsigned int) ip[3], (unsigned int) ip[2], (unsigned int) ip[1],