]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sha256.cpp
httpd connection close fixes (these need to be backported to 1.1 at some point?)...
[user/henk/code/inspircd.git] / src / modules / m_sha256.cpp
index 70727b301147ffe036e45e4e3b8dd5ca7d204a40..aee1cb12a8ec43298489b81257d257bdfea75903 100644 (file)
@@ -285,7 +285,7 @@ class ModuleSHA256 : public Module
                else if (strcmp("SUM", request->GetId()) == 0)
                {
                        static char data[MAXBUF];
-                       SHA256((const char*)SHA->GetHashData(), data, strlen(SHA->GetHashData()), chars ? chars : "0123456789abcdef", key);
+                       SHA256((const char*)SHA->GetHashData().data(), data, SHA->GetHashData().length(), chars ? chars : "0123456789abcdef", key);
                        return data;
                }
                else if (strcmp("NAME", request->GetId()) == 0)