diff options
-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:"; |