[xiph-cvs] cvs commit: net sock.c
Michael Smith
msmith at xiph.org
Wed Feb 12 02:58:17 PST 2003
msmith 03/02/12 05:58:17
Modified: . sock.c
Log:
Increase ip buffer sizes so that ipv6 has a better chance of working.
Revision Changes Path
1.14 +2 -2 net/sock.c
Index: sock.c
===================================================================
RCS file: /usr/local/cvsroot/net/sock.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- sock.c 6 Feb 2003 13:10:48 -0000 1.13
+++ sock.c 12 Feb 2003 10:58:17 -0000 1.14
@@ -490,7 +490,7 @@
int sock_try_connection (int sock, const char *hostname, const unsigned port)
{
struct sockaddr_in sin, server;
- char ip[20];
+ char ip[40];
if (!hostname || !hostname[0] || port == 0)
return -1;
@@ -498,7 +498,7 @@
memset(&sin, 0, sizeof(struct sockaddr_in));
memset(&server, 0, sizeof(struct sockaddr_in));
- if (!resolver_getip(hostname, ip, 20))
+ if (!resolver_getip(hostname, ip, 40))
{
sock_close (sock);
return -1;
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list