Changed length of password field to 64, giving us a maximum password length of 63 plus null terminator

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2960 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-01-28 23:56:10 +00:00
parent 89ae67a659
commit 1c50cc3371
2 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ class userrec : public connection
* This is stored even if the <connect> block doesnt need a password, so that
* modules may check it.
*/
char password[MAXBUF];
char password[64];
/** User's receive queue.
* Lines from the IRCd awaiting processing are stored here.

View File

@ -71,7 +71,7 @@ void cmd_pass::Handle (char **parameters, int pcnt, userrec *user)
return;
}
ConnectClass a = GetClass(user);
strlcpy(user->password,parameters[0],MAXBUF);
strlcpy(user->password,parameters[0],63);
if (!strcmp(parameters[0],a.pass.c_str()))
{
user->haspassed = true;