From f78243b6b1157cc030817df8fba605ece16f2f6b Mon Sep 17 00:00:00 2001 From: Naram Qashat Date: Wed, 4 Aug 2010 21:51:48 -0400 Subject: [PATCH] Also fix enc_old using the previous commit's fix. --- modules/core/enc_old.cpp | 4 ++-- 1 file 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:";