diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-28 23:56:10 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-28 23:56:10 +0000 |
commit | 1c50cc33710480370c21a90ae1ae1696da28ea15 (patch) | |
tree | 61209c4dcf0e0705f8acc9d164865c91f246b62b /src | |
parent | 89ae67a6598dfdb2c9f945d001024092c5a76b3e (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
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd_pass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |