All IP string repr buffers are now REDIS_IP_STR_LEN bytes.

This commit is contained in:
antirez
2013-07-09 11:32:52 +02:00
parent 2e75d3947c
commit a7451c1b6d
3 changed files with 4 additions and 5 deletions

View File

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