summaryrefslogtreecommitdiff
path: root/src/modules/m_sha256.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_sha256.cpp')
-rw-r--r--src/modules/m_sha256.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_sha256.cpp b/src/modules/m_sha256.cpp
index 70727b301..aee1cb12a 100644
--- a/src/modules/m_sha256.cpp
+++ b/src/modules/m_sha256.cpp
@@ -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)