From 4ffd644a14fa40b758f8937b06844861009bfec1 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 22 Dec 2005 17:18:18 +0000 Subject: Optimized out strcpys that copy empty strings (craq++) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2637 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_opermd5.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_opermd5.cpp') 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++) { -- cgit v1.2.3