From a546ab3f11c28ce03952567b8cf4035bd7a93bf5 Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 21 Feb 2006 03:30:29 +0000 Subject: It didn't, there was more strlcpy git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3271 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_nick.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd_nick.cpp') 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); -- cgit v1.2.3