From 7f8dbdb90e81331c20a34bc95aa2ff424a513124 Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Sun, 16 Apr 2006 02:28:59 +0000 Subject: [PATCH] Ugly fix, sue me. We don't support anything but IPv4 here anyway, so pass in sizeof(struct sockaddr_in) to connect(), since not all systems handle a wrong size there. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2218 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/http/httpclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/http/httpclient.c b/engine/http/httpclient.c index d5f3d629b..20f8dffeb 100644 --- a/engine/http/httpclient.c +++ b/engine/http/httpclient.c @@ -473,7 +473,7 @@ qboolean HTTP_CL_Get(char *url, char *localfile, void (*NotifyFunction)(char *lo }//end of quake. //not yet blocking. - if (connect(con->sock, (struct sockaddr *)&from, sizeof(from)) == -1) + if (connect(con->sock, (struct sockaddr *)&from, sizeof(struct sockaddr_in)) == -1) { IWebWarnPrintf ("HTTPCL_TCP_OpenSocket: connect: %i %s\n", qerrno, strerror(qerrno)); closesocket(con->sock);