summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/s_serv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/s_serv.c b/src/s_serv.c
index 5f09a09..49f2ff6 100644
--- a/src/s_serv.c
+++ b/src/s_serv.c
@@ -640,9 +640,11 @@ sendnick_TS(struct Client *client_p, struct Client *target_p)
const char *
show_capabilities(const struct Client *target_p)
{
- static char msgbuf[IRCD_BUFSIZE] = "TS";
+ static char msgbuf[IRCD_BUFSIZE] = "";
const dlink_node *ptr = NULL;
+ strlcpy(msgbuf, "TS", sizeof(msgbuf));
+
DLINK_FOREACH(ptr, cap_list.head)
{
const struct Capability *cap = ptr->data;