diff options
-rw-r--r-- | net-im/gaim/Makefile | 2 | ||||
-rw-r--r-- | net-im/gaim/files/patch-src::proxy.c | 42 | ||||
-rw-r--r-- | net/gaim/Makefile | 2 | ||||
-rw-r--r-- | net/gaim/files/patch-src::proxy.c | 42 |
4 files changed, 48 insertions, 40 deletions
diff --git a/net-im/gaim/Makefile b/net-im/gaim/Makefile index 573aec85bf67..3c56d2e58a0a 100644 --- a/net-im/gaim/Makefile +++ b/net-im/gaim/Makefile @@ -6,7 +6,7 @@ PORTNAME= gaim PORTVERSION= 0.75 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES?= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/net-im/gaim/files/patch-src::proxy.c b/net-im/gaim/files/patch-src::proxy.c index bbf4a19b3124..2a8ede90c94e 100644 --- a/net-im/gaim/files/patch-src::proxy.c +++ b/net-im/gaim/files/patch-src::proxy.c @@ -1,19 +1,23 @@ -*** src/proxy.c.orig Thu Jan 22 08:27:26 2004 ---- src/proxy.c Thu Jan 22 08:28:05 2004 -*************** -*** 974,980 **** - - gaim_input_remove(phb->inpa); - -! while ((nlc != 2) && (read(source, &inputline[pos++], 1) == 1)) { - if (inputline[pos - 1] == '\n') - nlc++; - else if (inputline[pos - 1] != '\r') ---- 974,980 ---- - - gaim_input_remove(phb->inpa); - -! while ((pos < sizeof(inputline)-1) && (nlc != 2) && (read(source, &inputline[pos++], 1) == 1)) { - if (inputline[pos - 1] == '\n') - nlc++; - else if (inputline[pos - 1] != '\r') +--- src/proxy.c.orig Fri Jan 9 23:04:56 2004 ++++ src/proxy.c Thu Mar 25 12:37:20 2004 +@@ -388,7 +388,11 @@ + int rc, err; + GSList *hosts = NULL; + struct sockaddr *addr = NULL; ++#if HAVE_GETADDRINFO ++ size_t addrlen; ++#else + socklen_t addrlen; ++#endif + + gaim_debug(GAIM_DEBUG_INFO, "dns", "Host '%s' resolved\n", req->host); + gaim_input_remove(req->inpa); +@@ -974,7 +978,7 @@ + + gaim_input_remove(phb->inpa); + +- while ((nlc != 2) && (read(source, &inputline[pos++], 1) == 1)) { ++ while ((pos < sizeof(inputline)-1) && (nlc != 2) && (read(source, &inputline[pos++], 1) == 1)) { + if (inputline[pos - 1] == '\n') + nlc++; + else if (inputline[pos - 1] != '\r') diff --git a/net/gaim/Makefile b/net/gaim/Makefile index 573aec85bf67..3c56d2e58a0a 100644 --- a/net/gaim/Makefile +++ b/net/gaim/Makefile @@ -6,7 +6,7 @@ PORTNAME= gaim PORTVERSION= 0.75 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES?= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/net/gaim/files/patch-src::proxy.c b/net/gaim/files/patch-src::proxy.c index bbf4a19b3124..2a8ede90c94e 100644 --- a/net/gaim/files/patch-src::proxy.c +++ b/net/gaim/files/patch-src::proxy.c @@ -1,19 +1,23 @@ -*** src/proxy.c.orig Thu Jan 22 08:27:26 2004 ---- src/proxy.c Thu Jan 22 08:28:05 2004 -*************** -*** 974,980 **** - - gaim_input_remove(phb->inpa); - -! while ((nlc != 2) && (read(source, &inputline[pos++], 1) == 1)) { - if (inputline[pos - 1] == '\n') - nlc++; - else if (inputline[pos - 1] != '\r') ---- 974,980 ---- - - gaim_input_remove(phb->inpa); - -! while ((pos < sizeof(inputline)-1) && (nlc != 2) && (read(source, &inputline[pos++], 1) == 1)) { - if (inputline[pos - 1] == '\n') - nlc++; - else if (inputline[pos - 1] != '\r') +--- src/proxy.c.orig Fri Jan 9 23:04:56 2004 ++++ src/proxy.c Thu Mar 25 12:37:20 2004 +@@ -388,7 +388,11 @@ + int rc, err; + GSList *hosts = NULL; + struct sockaddr *addr = NULL; ++#if HAVE_GETADDRINFO ++ size_t addrlen; ++#else + socklen_t addrlen; ++#endif + + gaim_debug(GAIM_DEBUG_INFO, "dns", "Host '%s' resolved\n", req->host); + gaim_input_remove(req->inpa); +@@ -974,7 +978,7 @@ + + gaim_input_remove(phb->inpa); + +- while ((nlc != 2) && (read(source, &inputline[pos++], 1) == 1)) { ++ while ((pos < sizeof(inputline)-1) && (nlc != 2) && (read(source, &inputline[pos++], 1) == 1)) { + if (inputline[pos - 1] == '\n') + nlc++; + else if (inputline[pos - 1] != '\r') |