diff --git a/src/s_user.c b/src/s_user.c index f86b31a68..e4e72bb41 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -1983,7 +1983,7 @@ static int m_message(cptr, sptr, parc, parv, notice) break; /* ignore it :P */ } pfixchan[len] = '\0'; - strncat(pfixchan, p2, sizeof(pfixchan)); + strncat(pfixchan, p2, sizeof(pfixchan) - strlen(pfixchan)); nick = pfixchan; } }