summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/crypt_dll.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-22 10:06:32 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-22 10:06:32 +0000
commit5a17c9299e03bebf46169927abdeee34aaf8e854 (patch)
treecbd13080f33ac0b6396b9d3b8ba31a3c98de59f8 /plugins/SecureIM/src/crypt_dll.cpp
parented64312924e77707e7e5b5965c301692519f293a (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/crypt_dll.cpp')
-rw-r--r--plugins/SecureIM/src/crypt_dll.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/SecureIM/src/crypt_dll.cpp b/plugins/SecureIM/src/crypt_dll.cpp
index a40b6c4974..162b6090ab 100644
--- a/plugins/SecureIM/src/crypt_dll.cpp
+++ b/plugins/SecureIM/src/crypt_dll.cpp
@@ -28,8 +28,8 @@ LPSTR InitKeyA(pUinKey ptr, int features)
else
keysig = (LPSTR)SIG_KEY3;
- int slen = (int)strlen(keysig);
- int tlen = (int)strlen(pub_text);
+ int slen = (int)mir_strlen(keysig);
+ int tlen = (int)mir_strlen(pub_text);
LPSTR keyToSend = (LPSTR)mir_alloc(slen + tlen + 1);
@@ -106,8 +106,8 @@ LPSTR encrypt(pUinKey ptr, LPCSTR szEncMsg)
{
LPSTR szSig = (LPSTR)(ptr->offlineKey ? SIG_ENOF : SIG_ENON);
- int slen = (int)strlen(szSig);
- int clen = (int)strlen(szEncMsg);
+ int slen = (int)mir_strlen(szSig);
+ int clen = (int)mir_strlen(szEncMsg);
LPSTR szMsg = (LPSTR)mir_alloc(clen + slen + 1);
memcpy(szMsg, szSig, slen);
@@ -151,7 +151,7 @@ LPSTR decodeMsg(pUinKey ptr, LPARAM lParam, LPSTR szEncMsg)
}
else {
ptr->decoded = true;
- int olen = (int)strlen(szOldMsg) + 1;
+ int olen = (int)mir_strlen(szOldMsg) + 1;
szNewMsg = (LPSTR)mir_alloc(olen);
memcpy(szNewMsg, szOldMsg, olen);
}