summaryrefslogtreecommitdiff
path: root/protocols/Tlen/src/tlen_thread.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 /protocols/Tlen/src/tlen_thread.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 'protocols/Tlen/src/tlen_thread.cpp')
-rw-r--r--protocols/Tlen/src/tlen_thread.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Tlen/src/tlen_thread.cpp b/protocols/Tlen/src/tlen_thread.cpp
index 6d93071a28..2b6af296c1 100644
--- a/protocols/Tlen/src/tlen_thread.cpp
+++ b/protocols/Tlen/src/tlen_thread.cpp
@@ -635,7 +635,7 @@ static void TlenProcessMessage(XmlNode *node, ThreadData *info)
if ((bodyNode=TlenXmlGetChild(node, "body")) != NULL) {
if (bodyNode->text != NULL) {
if ((subjectNode=TlenXmlGetChild(node, "subject")) != NULL && subjectNode->text != NULL && subjectNode->text[0] != '\0') {
- size_t size = strlen(subjectNode->text)+strlen(bodyNode->text)+5;
+ size_t size = mir_strlen(subjectNode->text)+mir_strlen(bodyNode->text)+5;
p = (char *)mir_alloc(size);
mir_snprintf(p, size, "%s\r\n%s", subjectNode->text, bodyNode->text);
localMessage = TlenTextDecode(p);
@@ -744,8 +744,8 @@ static void TlenProcessIq(XmlNode *node, ThreadData *info)
id = -1;
if ((idStr=TlenXmlGetAttrValue(node, "id")) != NULL) {
- if (!strncmp(idStr, TLEN_IQID, strlen(TLEN_IQID)))
- id = atoi(idStr+strlen(TLEN_IQID));
+ if (!strncmp(idStr, TLEN_IQID, mir_strlen(TLEN_IQID)))
+ id = atoi(idStr+mir_strlen(TLEN_IQID));
}
queryNode = TlenXmlGetChild(node, "query");
@@ -1130,7 +1130,7 @@ static void TlenProcessP(XmlNode *node, ThreadData *info)
iNode = TlenXmlGetChild(xNode, "i");
if (iNode != NULL) {
iStr = TlenXmlGetAttrValue(iNode, "i");
- temp = (char*)mir_alloc(strlen(f)+strlen(iStr)+2);
+ temp = (char*)mir_alloc(mir_strlen(f)+mir_strlen(iStr)+2);
strcpy(temp, f);
strcat(temp, "/");
strcat(temp, iStr);