diff options
author | viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b <viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-23 11:14:09 +0000 |
---|---|---|
committer | viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b <viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-23 11:14:09 +0000 |
commit | 5b9b1acca52ccdb60f0832b3dc82328d525270a9 (patch) | |
tree | 8c11b9698e64012a9a2f72ae53b7a71d29342f68 /src/core/cs_getpass.c | |
parent | 72b960152c961f9195bc837788830e257898f42a (diff) |
BUILD : 1.7.22 (1450) BUGS : NOTES : Fixed a number of remaining buffer overflows in NS and CS not addressed by previous commit.
git-svn-id: svn://svn.anope.org/anope/trunk@1450 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1164 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/cs_getpass.c')
-rw-r--r-- | src/core/cs_getpass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/cs_getpass.c b/src/core/cs_getpass.c index 94ec03efa..458488cf0 100644 --- a/src/core/cs_getpass.c +++ b/src/core/cs_getpass.c @@ -84,7 +84,7 @@ int do_getpass(User * u) } else if (CSRestrictGetPass && !is_services_root(u)) { notice_lang(s_ChanServ, u, PERMISSION_DENIED); } else { - if(enc_decrypt(ci->founderpass,tmp_pass,PASSMAX)==1) { + if(enc_decrypt(ci->founderpass, tmp_pass, PASSMAX - 1)==1) { alog("%s: %s!%s@%s used GETPASS on %s", s_ChanServ, u->nick, u->username, u->host, ci->name); if (WallGetpass) { |