diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 10:06:32 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 10:06:32 +0000 |
commit | 5a17c9299e03bebf46169927abdeee34aaf8e854 (patch) | |
tree | cbd13080f33ac0b6396b9d3b8ba31a3c98de59f8 /plugins/SecureIM/src/mmi.cpp | |
parent | ed64312924e77707e7e5b5965c301692519f293a (diff) |
replace strlen to mir_strlen
git-svn-id: http://svn.miranda-ng.org/main/trunk@13747 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src/mmi.cpp')
-rw-r--r-- | plugins/SecureIM/src/mmi.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/SecureIM/src/mmi.cpp b/plugins/SecureIM/src/mmi.cpp index e75a076472..90b44148ed 100644 --- a/plugins/SecureIM/src/mmi.cpp +++ b/plugins/SecureIM/src/mmi.cpp @@ -23,8 +23,8 @@ void operator delete[](void *p) // ANSIzUCS2z + ANSIzUCS2z = ANSIzUCS2z
char* m_wwstrcat(LPCSTR strA, LPCSTR strB)
{
- int lenA = (int)strlen(strA);
- int lenB = (int)strlen(strB);
+ int lenA = (int)mir_strlen(strA);
+ int lenB = (int)mir_strlen(strB);
LPSTR str = (LPSTR)mir_alloc((lenA + lenB + 1)*(sizeof(WCHAR) + 1));
memcpy(str, strA, lenA);
memcpy(str + lenA, strB, lenB + 1);
@@ -36,7 +36,7 @@ char* m_wwstrcat(LPCSTR strA, LPCSTR strB) // ANSIz + ANSIzUCS2z = ANSIzUCS2z
char* m_awstrcat(LPCSTR strA, LPCSTR strB)
{
- int lenA = (int)strlen(strA);
+ int lenA = (int)mir_strlen(strA);
LPSTR tmpA = (LPSTR)mir_alloc((lenA + 1)*(sizeof(WCHAR) + 1));
strcpy(tmpA, strA);
MultiByteToWideChar(CP_ACP, 0, strA, -1, (LPWSTR)(tmpA + lenA + 1), (lenA + 1)*sizeof(WCHAR));
@@ -48,8 +48,8 @@ char* m_awstrcat(LPCSTR strA, LPCSTR strB) // ANSIz + ANSIz = ANSIzUCS2z
char* m_aastrcat(LPCSTR strA, LPCSTR strB)
{
- int lenA = (int)strlen(strA);
- int lenB = (int)strlen(strB);
+ int lenA = (int)mir_strlen(strA);
+ int lenB = (int)mir_strlen(strB);
LPSTR str = (LPSTR)mir_alloc((lenA + lenB + 1)*(sizeof(WCHAR) + 1));
strcpy(str, strA);
strcat(str, strB);
@@ -63,7 +63,7 @@ LPSTR m_string = NULL; char* m_ustrcat(LPCSTR strA, LPCSTR strB)
{
SAFE_FREE(m_string);
- m_string = (LPSTR)mir_alloc(strlen(strA) + strlen(strB) + 1);
+ m_string = (LPSTR)mir_alloc(mir_strlen(strA) + mir_strlen(strB) + 1);
strcpy(m_string, strA); strcat(m_string, strB);
return m_string;
}
|