summaryrefslogtreecommitdiff
path: root/plugins/Non-IM Contact/src/http.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Non-IM Contact/src/http.cpp')
-rw-r--r--plugins/Non-IM Contact/src/http.cpp3
1 files changed, 1 insertions, 2 deletions
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;