From 39d57c057f3cf9dd2682548f554fe117007d289b Mon Sep 17 00:00:00 2001 From: Geoff Garside Date: Sat, 18 Jun 2011 19:34:16 +0100 Subject: [PATCH] Mark ip string buffers which could be reduced. In two places buffers have been created with a size of 128 bytes which could be reduced to INET6_ADDRSTRLEN to still hold a full IP address. These places have been marked as they are presently big enough to handle the needs of storing a printable IPv6 address. --- src/networking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/networking.c b/src/networking.c index ecad9f75..fcaea134 100644 --- a/src/networking.c +++ b/src/networking.c @@ -552,7 +552,7 @@ static void acceptCommonHandler(int fd, int flags) { void acceptTcpHandler(aeEventLoop *el, int fd, void *privdata, int mask) { int cport, cfd; - char cip[128]; + char cip[128]; /* Could use INET6_ADDRSTRLEN here, but its smaller */ REDIS_NOTUSED(el); REDIS_NOTUSED(mask); REDIS_NOTUSED(privdata);