diff options
author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-08-04 21:51:48 -0400 |
---|---|---|
committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-08-04 21:51:48 -0400 |
commit | f78243b6b1157cc030817df8fba605ece16f2f6b (patch) | |
tree | f9104d6a57232e1a8251d07ce1543f921fcc99c1 | |
parent | 9da927889f4eb621a912cb7775baa6e23e0af33a (diff) |
Also fix enc_old using the previous commit's fix.
-rw-r--r-- | modules/core/enc_old.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/core/enc_old.cpp b/modules/core/enc_old.cpp index d03695665..2928b4d0d 100644 --- a/modules/core/enc_old.cpp +++ b/modules/core/enc_old.cpp @@ -170,7 +170,7 @@ static void MD5Update(MD5_CTX *context, const unsigned char *input, unsigned inp /* MD5 finalization. Ends an MD5 message-digest operation, writing the * the message digest and zeroizing the context. */ -static void MD5Final(unsigned char digest[16], MD5_CTX *context) +static void MD5Final(unsigned char digest[17], MD5_CTX *context) { unsigned char bits[8]; unsigned index, padLen; @@ -333,7 +333,7 @@ class EOld : public Module EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) { MD5_CTX context; - char digest[33] = "", digest2[16] = ""; + char digest[33] = "", digest2[17] = ""; Anope::string cpass; int i; Anope::string buf = "oldmd5:"; |