From e3d5140dcc936ff411c438b7e3997104cb5f085a Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 1 Sep 2012 18:54:51 -0400 Subject: Added a web panel module + a default template --- modules/encryption/enc_sha256.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/encryption') diff --git a/modules/encryption/enc_sha256.cpp b/modules/encryption/enc_sha256.cpp index b119eeba6..cee21b01d 100644 --- a/modules/encryption/enc_sha256.cpp +++ b/modules/encryption/enc_sha256.cpp @@ -148,7 +148,7 @@ class ESHA256 : public Module size_t pos = password.find(':'); Anope::string buf = password.substr(password.find(':', pos + 1) + 1, password.length()); char buf2[33]; - Anope::Unhex(buf, buf2); + Anope::Unhex(buf, buf2, sizeof(buf2)); for (int i = 0 ; i < 8; ++i) PACK32(reinterpret_cast(&buf2[i << 2]), iv[i]); } -- cgit