summaryrefslogtreecommitdiff
path: root/memcached.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2022-08-25 17:09:19 -0700
committerdormando <dormando@rydia.net>2022-08-25 17:09:19 -0700
commitfd6b5bee6140ec7bdb830d330f56283acedd9a20 (patch)
tree86adf75c9fb59fdd92db60176ae2c94719f2715e /memcached.c
parent656dedad48c81541060448d008b90290196263c5 (diff)
downloadmemcached-fd6b5bee6140ec7bdb830d330f56283acedd9a20.tar.gz
core: fix strncat warning
introduced during removal of strcat calls. seems to only affect older gcc's, so maybe a misfire warning that got removed.
Diffstat (limited to 'memcached.c')
-rw-r--r--memcached.c2
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";