diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-21 03:30:29 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-21 03:30:29 +0000 |
commit | a546ab3f11c28ce03952567b8cf4035bd7a93bf5 (patch) | |
tree | ef1a1755d4c65bcdedbbd1309a06af31315b3864 | |
parent | 76109ae62bc0ea75662094bb8c0c5f658d64271a (diff) |
It didn't, there was more strlcpy
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3271 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/cmd_nick.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp index 4f5b962b9..518d600f1 100644 --- a/src/cmd_nick.cpp +++ b/src/cmd_nick.cpp @@ -153,7 +153,7 @@ void cmd_nick::Handle (char **parameters, int pcnt, userrec *user) } - strlcpy(oldnick,user->nick,NICKMAX); + strlcpy(oldnick, user->nick, NICKMAX - 1); /* change the nick of the user in the users_hash */ user = ReHashNick(user->nick, parameters[0]); @@ -161,7 +161,7 @@ void cmd_nick::Handle (char **parameters, int pcnt, userrec *user) if (!user) return; if (!user->nick) return; - strlcpy(user->nick, parameters[0],NICKMAX); + strlcpy(user->nick, parameters[0], NICKMAX - 1); log(DEBUG,"new nick set: %s",user->nick); |