diff options
Diffstat (limited to 'src/cmd_topic.cpp')
-rw-r--r-- | src/cmd_topic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_topic.cpp b/src/cmd_topic.cpp index 96aadd8fd..c1eb50532 100644 --- a/src/cmd_topic.cpp +++ b/src/cmd_topic.cpp @@ -132,7 +132,7 @@ void cmd_topic::Handle (char **parameters, int pcnt, userrec *user) } strlcpy(Ptr->topic,topic,MAXTOPIC); - strlcpy(Ptr->setby,user->nick,NICKMAX); + strlcpy(Ptr->setby,user->nick,NICKMAX-1); Ptr->topicset = TIME; WriteChannel(Ptr,user,"TOPIC %s :%s",Ptr->name, Ptr->topic); if (IS_LOCAL(user)) |