diff options
| author | 2006-02-21 03:27:23 +0000 | |
|---|---|---|
| committer | 2006-02-21 03:27:23 +0000 | |
| commit | 76109ae62bc0ea75662094bb8c0c5f658d64271a (patch) | |
| tree | 4f4cb5aa6bfd01517b134890666ecebbe12ede09 /src/cmd_nick.cpp | |
| parent | Lets fix it right this time (and annoy ol with more tweaks) (diff) | |
| download | inspircd++-76109ae62bc0ea75662094bb8c0c5f658d64271a.tar.gz inspircd++-76109ae62bc0ea75662094bb8c0c5f658d64271a.tar.bz2 inspircd++-76109ae62bc0ea75662094bb8c0c5f658d64271a.zip | |
Fix this, I think.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3270 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_nick.cpp')
| -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 31f0943e7..4f5b962b9 100644 --- a/src/cmd_nick.cpp +++ b/src/cmd_nick.cpp @@ -102,14 +102,14 @@ void cmd_nick::Handle (char **parameters, int pcnt, userrec *user) * the nick AAA is the same as the nick aaa. */ log(DEBUG,"old nick is new nick, not updating hash (case change only)"); - strlcpy(oldnick,user->nick,NICKMAX); + strlcpy(oldnick, user->nick, NICKMAX - 1); int MOD_RESULT = 0; FOREACH_RESULT(I_OnUserPreNick,OnUserPreNick(user,parameters[0])); if (MOD_RESULT) return; if (user->registered == 7) WriteCommon(user,"NICK %s",parameters[0]); - strlcpy(user->nick,parameters[0],NICKMAX); + strlcpy(user->nick, parameters[0], NICKMAX - 1); FOREACH_MOD(I_OnUserPostNick,OnUserPostNick(user,oldnick)); return; } |
