diff options
-rw-r--r-- | include/users.h | 2 | ||||
-rw-r--r-- | src/cmd_pass.cpp | 2 |
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; |