summaryrefslogtreecommitdiff
path: root/plugins/WebView/src/webview_getdata.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-12-02 21:55:57 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-12-02 21:55:57 +0000
commit0ca0de7698b523effaaf6cc9c608e936fa5aaf86 (patch)
tree1e6ce038dc27a1ccddb5e3f863607c83eece2e98 /plugins/WebView/src/webview_getdata.cpp
parentaeae01dc50a5adea8fe003c8195540b1f2b2169f (diff)
useless calls of mir_*strlen in DrawText replaced with -1
git-svn-id: http://svn.miranda-ng.org/main/trunk@11223 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WebView/src/webview_getdata.cpp')
-rw-r--r--plugins/WebView/src/webview_getdata.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/WebView/src/webview_getdata.cpp b/plugins/WebView/src/webview_getdata.cpp
index 64bbd6c805..f2683750e1 100644
--- a/plugins/WebView/src/webview_getdata.cpp
+++ b/plugins/WebView/src/webview_getdata.cpp
@@ -149,7 +149,7 @@ void GetData(void *param)
size_t cbLen = mir_strlen(nlhrReply->pData);
char *szInfo = (char*)malloc(cbLen + 2);
mir_strncpy(szInfo, nlhrReply->pData, cbLen);
- downloadsize = mir_strlen(nlhrReply->pData);
+ downloadsize = (ULONG)mir_strlen(nlhrReply->pData);
trunccount = 0;
mir_strncpy(truncated2, szInfo, MAXSIZE2);
@@ -202,13 +202,13 @@ void GetData(void *param)
memset(&pos, 0, sizeof(pos)); // XXX: looks bad.
// end string
pos = strstr(truncated2, tempstring2);
- statposend = pos - truncated2 + strlen(tempstring2);
+ statposend = pos - truncated2 + (int)strlen(tempstring2);
if (statpos > statposend) {
memset(&truncated2, ' ', statpos);
memset(&pos, 0, sizeof(pos)); // XXX: looks bad.
pos = strstr(truncated2, tempstring2);
- statposend = pos - truncated2 + strlen(tempstring2);
+ statposend = pos - truncated2 + (int)strlen(tempstring2);
}
if (statpos < statposend) {
memset(&raw, 0, sizeof(raw));