summaryrefslogtreecommitdiff
path: root/src/modules/m_opermd5.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_opermd5.cpp')
-rw-r--r--src/modules/m_opermd5.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_opermd5.cpp b/src/modules/m_opermd5.cpp
index 44b029082..2c2b51404 100644
--- a/src/modules/m_opermd5.cpp
+++ b/src/modules/m_opermd5.cpp
@@ -245,7 +245,7 @@ void GenHash(const char* src, char* dest)
int i = 0;
unsigned char bytes[16];
char hash[1024];
- strcpy(hash,"");
+ *hash = 0;
MyMD5((char*)bytes,(void*)src,strlen(src));
for (i = 0; i < 16; i++)
{