summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-28 23:56:10 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-28 23:56:10 +0000
commit1c50cc33710480370c21a90ae1ae1696da28ea15 (patch)
tree61209c4dcf0e0705f8acc9d164865c91f246b62b
parent89ae67a6598dfdb2c9f945d001024092c5a76b3e (diff)
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
-rw-r--r--include/users.h2
-rw-r--r--src/cmd_pass.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/users.h b/include/users.h
index e1bf887bd..d64c94280 100644
--- a/include/users.h
+++ b/include/users.h
@@ -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.
diff --git a/src/cmd_pass.cpp b/src/cmd_pass.cpp
index 7ce448712..663215281 100644
--- a/src/cmd_pass.cpp
+++ b/src/cmd_pass.cpp
@@ -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;