It didn't, there was more strlcpy

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3271 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
w00t 2006-02-21 03:30:29 +00:00
parent 76109ae62b
commit a546ab3f11

View File

@ -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);