mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
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:
parent
2332cc6623
commit
7f8dbdb90e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue