diff options
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index ec29024e0..c70f4f26a 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -428,8 +428,8 @@ char* ModeParser::AddBan(userrec *user,char *dest,chanrec *chan,int status) } b.set_time = TIME; - strncpy(b.data,dest,MAXBUF); - strncpy(b.set_by,user->nick,NICKMAX); + strlcpy(b.data,dest,MAXBUF); + strlcpy(b.set_by,user->nick,NICKMAX); chan->bans.push_back(b); return dest; } |