diff options
Diffstat (limited to 'memcached.c')
-rw-r--r-- | memcached.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/memcached.c b/memcached.c index 0c1e756..d53b607 100644 --- a/memcached.c +++ b/memcached.c @@ -2056,7 +2056,7 @@ static inline void get_conn_text(const conn *c, const int af, &((struct sockaddr_in6 *)sock_addr)->sin6_addr, addr_text + 1, sizeof(addr_text) - 2)) { - strncat(addr_text, "]", 1); + strncat(addr_text, "]", 2); } port = ntohs(((struct sockaddr_in6 *)sock_addr)->sin6_port); protoname = IS_UDP(c->transport) ? "udp6" : "tcp6"; |