aboutsummaryrefslogtreecommitdiffstats
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-01-18 21:58:53 +0000
committerGravatar brain2006-01-18 21:58:53 +0000
commitb99156d6d6886783a777d0801d519116502d3cd9 (patch)
treee77d5266e875d0aa6aa86b933507df0c2ef61c32 /src/mode.cpp
parentstrncpy sucks ass! -- Old code was using strncpy which doesnt null terminate ... (diff)
downloadinspircd++-b99156d6d6886783a777d0801d519116502d3cd9.tar.gz
inspircd++-b99156d6d6886783a777d0801d519116502d3cd9.tar.bz2
inspircd++-b99156d6d6886783a777d0801d519116502d3cd9.zip
Removed all strncpy() calls and replaced with strlcpy()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2818 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp4
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;
}