diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-04 23:42:36 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-04 23:42:36 +0000 |
commit | e63926f79d51119b829d683983e562527f7dd10a (patch) | |
tree | 4ad26cc425798912f9391d9166cf32c6ea573c17 /plugins/WebView/src | |
parent | a16429430c5cd7b20c6790c0f1084a8df6bbc9f4 (diff) |
Db_autobackups: multiple changes
+ varios fixs
git-svn-id: http://svn.miranda-ng.org/main/trunk@11245 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WebView/src')
-rw-r--r-- | plugins/WebView/src/webview_getdata.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/plugins/WebView/src/webview_getdata.cpp b/plugins/WebView/src/webview_getdata.cpp index f2683750e1..df85b2d813 100644 --- a/plugins/WebView/src/webview_getdata.cpp +++ b/plugins/WebView/src/webview_getdata.cpp @@ -146,17 +146,9 @@ void GetData(void *param) db_set_ts(hContact, "CList", "StatusMsg", statusText);
}
if (nlhrReply->dataLength) {
- size_t cbLen = mir_strlen(nlhrReply->pData);
- char *szInfo = (char*)malloc(cbLen + 2);
- mir_strncpy(szInfo, nlhrReply->pData, cbLen);
- downloadsize = (ULONG)mir_strlen(nlhrReply->pData);
-
trunccount = 0;
- mir_strncpy(truncated2, szInfo, MAXSIZE2);
- free(szInfo);
-
- ////////////////////////////////////////////
- sprintf(truncated2, "%s", nlhrReply->pData);
+ downloadsize = (ULONG)mir_strlen(nlhrReply->pData);
+ strncpy_s(truncated2, nlhrReply->pData, _TRUNCATE);
AlreadyDownloading = 1;
} // END DATELENGTH
} // END REPLY
|