summaryrefslogtreecommitdiff
path: root/plugins/WebView/src/webview_getdata.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/WebView/src/webview_getdata.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/WebView/src/webview_getdata.cpp')
-rw-r--r--plugins/WebView/src/webview_getdata.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/WebView/src/webview_getdata.cpp b/plugins/WebView/src/webview_getdata.cpp
index 5563711733..a542e21c0a 100644
--- a/plugins/WebView/src/webview_getdata.cpp
+++ b/plugins/WebView/src/webview_getdata.cpp
@@ -101,7 +101,7 @@ void GetData(void *param)
db_free(&dbv);
}
- if (strlen(url) < 3)
+ if (mir_strlen(url) < 3)
WErrorPopup(hContact, TranslateT("URL not supplied"));
NETLIBHTTPREQUEST nlhr = { sizeof(nlhr) };
@@ -194,13 +194,13 @@ void GetData(void *param)
memset(&pos, 0, sizeof(pos)); // XXX: looks bad.
// end string
pos = strstr(truncated2, tempstring2);
- statposend = pos - truncated2 + (int)strlen(tempstring2);
+ statposend = pos - truncated2 + (int)mir_strlen(tempstring2);
if (statpos > statposend) {
memset(&truncated2, ' ', statpos);
memset(&pos, 0, sizeof(pos)); // XXX: looks bad.
pos = strstr(truncated2, tempstring2);
- statposend = pos - truncated2 + (int)strlen(tempstring2);
+ statposend = pos - truncated2 + (int)mir_strlen(tempstring2);
}
if (statpos < statposend) {
memset(&raw, 0, sizeof(raw));
@@ -215,13 +215,13 @@ void GetData(void *param)
// end string
pos = strstr(truncated2, tempstring2);
- statposend = pos - truncated2 + (int)strlen(tempstring2);
+ statposend = pos - truncated2 + (int)mir_strlen(tempstring2);
if (statpos > statposend) {
memset(&truncated2, ' ', statpos);
memset(&pos, 0, sizeof(pos)); // XXX
pos = strstr(truncated2, tempstring2);
- statposend = pos - truncated2 + (int)strlen(tempstring2);
+ statposend = pos - truncated2 + (int)mir_strlen(tempstring2);
}
dispos = 0;
@@ -437,13 +437,13 @@ LBL_Stop: TCHAR *statusText = TranslateT("Processing data stopped by user.");
goto LBL_Stop;
// removed any excess characters at the end.
- if ((truncated[strlen(truncated) - 1] == truncated[strlen(truncated) - 2]) && (truncated[strlen(truncated) - 2] == truncated[strlen(truncated) - 3])) {
+ if ((truncated[mir_strlen(truncated) - 1] == truncated[mir_strlen(truncated) - 2]) && (truncated[mir_strlen(truncated) - 2] == truncated[mir_strlen(truncated) - 3])) {
int counterx = 0;
while (true) {
counterx++;
- if (truncated[strlen(truncated) - counterx] != truncated[strlen(truncated) - 1]) {
- truncated[(strlen(truncated) - counterx) + 2] = '\0';
+ if (truncated[mir_strlen(truncated) - counterx] != truncated[mir_strlen(truncated) - 1]) {
+ truncated[(mir_strlen(truncated) - counterx) + 2] = '\0';
break;
}
}