From e63926f79d51119b829d683983e562527f7dd10a Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Thu, 4 Dec 2014 23:42:36 +0000 Subject: Db_autobackups: multiple changes + varios fixs git-svn-id: http://svn.miranda-ng.org/main/trunk@11245 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/WebView/src/webview_getdata.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'plugins/WebView/src') 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 -- cgit v1.2.3