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
This commit is contained in:
Mark Olsen 2006-04-16 02:28:59 +00:00
parent 2332cc6623
commit 7f8dbdb90e
1 changed files with 1 additions and 1 deletions

View File

@ -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);