Fix calls to anetPeerToString() missing buffer size.

This commit is contained in:
Geoff Garside 2012-06-07 19:01:51 +01:00 committed by antirez
parent 93570e179e
commit 1ca4008d14

View File

@ -2424,7 +2424,7 @@ sds genRedisInfoString(char *section) {
while((ln = listNext(&li))) { while((ln = listNext(&li))) {
redisClient *slave = listNodeValue(ln); redisClient *slave = listNodeValue(ln);
char *state = NULL; char *state = NULL;
char ip[32]; char ip[INET6_ADDRSTRLEN];
int port; int port;
long lag = 0; long lag = 0;