diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-09 05:04:09 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-09 05:04:09 +0000 |
| commit | 911eeea8673953739a559683434d269d3b365584 (patch) | |
| tree | 0472745d1f917a92298876ec620b5fe9e64ef69b /src | |
| parent | 1ec931a93a625a79a592f4aa7835abf466f71f3a (diff) | |
Fixed enc_none OnDecrypt to work correctly on Windows
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2867 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/enc_none.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/enc_none.c b/src/core/enc_none.c index 8cd375428..e6d1a16d6 100644 --- a/src/core/enc_none.c +++ b/src/core/enc_none.c @@ -45,6 +45,7 @@ class ENone : public Module if (hashm != "plain") return EVENT_CONTINUE; char cpass[1000]; + memset(&cpass, 0, sizeof(cpass)); size_t pos = src.find(":"); std::string buf(src.begin()+pos+1, src.end()); b64_decode(buf.c_str(), static_cast<char *>(cpass), 1000); |
