From 908ef2b2907d5a17516961b58ab108025c7fecc8 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Fri, 16 May 2003 20:12:03 +0000 Subject: [PATCH] HTTP_HttpOpenRequestA: Calculate size from the right argument. --- dlls/wininet/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 1197d980427..df2a1ebf73d 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -399,7 +399,7 @@ HINTERNET WINAPI HTTP_HttpOpenRequestA(HINTERNET hHttpSession, InternetCrackUrlA(proxy, 0, 0, &UrlComponents); if (strlen(UrlComponents.lpszHostName)) { /* for constant 13 see above */ - char* url = HeapAlloc(GetProcessHeap(), 0, strlen(lpwhr->lpszHostName) + strlen(lpwhr->lpszPath) + 13); + char* url = HeapAlloc(GetProcessHeap(), 0, strlen(lpwhs->lpszServerName) + strlen(lpwhr->lpszPath) + 13); if(UrlComponents.nPort == INTERNET_INVALID_PORT_NUMBER) UrlComponents.nPort = INTERNET_DEFAULT_HTTP_PORT;