diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-10-07 18:59:19 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-10-07 18:59:19 +0000 |
commit | a5e65f02c7e37bed18fbca915e8040358d0f4fe7 (patch) | |
tree | ea9c8bfea65445c37181f77e4514cf7d98a1edcc /plugins/Non-IM Contact/src/http.cpp | |
parent | 419ee29ab88a47d9a87f96de040e0ce6921b83fe (diff) |
Non-IM Contact:
- Minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@15516 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Non-IM Contact/src/http.cpp')
-rw-r--r-- | plugins/Non-IM Contact/src/http.cpp | 3 |
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;
|