From a5e65f02c7e37bed18fbca915e8040358d0f4fe7 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Wed, 7 Oct 2015 18:59:19 +0000 Subject: Non-IM Contact: - Minor code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@15516 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Non-IM Contact/src/http.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/Non-IM Contact/src/http.cpp') diff --git a/plugins/Non-IM Contact/src/http.cpp b/plugins/Non-IM Contact/src/http.cpp index 23b1064236..912f16eac3 100644 --- a/plugins/Non-IM Contact/src/http.cpp +++ b/plugins/Non-IM Contact/src/http.cpp @@ -31,7 +31,7 @@ HANDLE hNetlibUser; // szUrl = URL of the webpage to be retrieved // return value = 0 for success, 1 or HTTP error code for failure // global var used: szData, szInfo = containing the retrieved data - +// int InternetDownloadFile(char *szUrl) { NETLIBHTTPREQUEST nlhr = { 0 }; @@ -44,7 +44,6 @@ int InternetDownloadFile(char *szUrl) // change the header so the plugin is pretended to be IE 6 + WinXP nlhr.headersCount++; nlhr.headers = (NETLIBHTTPHEADER*)malloc(sizeof(NETLIBHTTPHEADER)*nlhr.headersCount); - memcpy(nlhr.headers, nlhr.headers, sizeof(NETLIBHTTPHEADER)*nlhr.headersCount); nlhr.headers[nlhr.headersCount - 1].szName = "User-Agent"; nlhr.headers[nlhr.headersCount - 1].szValue = NETLIB_USER_AGENT; -- cgit v1.2.3