mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 20:19:02 -04:00
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:
parent
76109ae62b
commit
a546ab3f11
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user