aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net-im/gaim/Makefile1
-rw-r--r--net-im/gaim/files/patch-src::util.c28
-rw-r--r--net/gaim/Makefile1
-rw-r--r--net/gaim/files/patch-src::util.c28
4 files changed, 58 insertions, 0 deletions
diff --git a/net-im/gaim/Makefile b/net-im/gaim/Makefile
index 9290f1ba5e05..59f6bd6d3c15 100644
--- a/net-im/gaim/Makefile
+++ b/net-im/gaim/Makefile
@@ -6,6 +6,7 @@
PORTNAME= gaim
PORTVERSION= 0.75
+PORTREVISION= 1
CATEGORIES?= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/net-im/gaim/files/patch-src::util.c b/net-im/gaim/files/patch-src::util.c
new file mode 100644
index 000000000000..67054a740409
--- /dev/null
+++ b/net-im/gaim/files/patch-src::util.c
@@ -0,0 +1,28 @@
+*** src/util.c.orig Tue Jan 13 14:49:00 2004
+--- src/util.c Tue Jan 13 14:49:11 2004
+***************
+*** 2081,2089 ****
+ static size_t
+ parse_content_len(const char *data, size_t data_len)
+ {
+! size_t content_len = 0;
+
+! sscanf(data, "Content-Length: %d", (int *)&content_len);
+
+ return content_len;
+ }
+--- 2081,2094 ----
+ static size_t
+ parse_content_len(const char *data, size_t data_len)
+ {
+! int content_len = 0;
+! char *tmp;
+
+! tmp = g_malloc(data_len + 1);
+! memcpy(tmp, data, data_len);
+! tmp[data_len] = '\0';
+! sscanf(tmp, "Content-Length: %d", &content_len);
+! g_free(tmp);
+
+ return content_len;
+ }
diff --git a/net/gaim/Makefile b/net/gaim/Makefile
index 9290f1ba5e05..59f6bd6d3c15 100644
--- a/net/gaim/Makefile
+++ b/net/gaim/Makefile
@@ -6,6 +6,7 @@
PORTNAME= gaim
PORTVERSION= 0.75
+PORTREVISION= 1
CATEGORIES?= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/net/gaim/files/patch-src::util.c b/net/gaim/files/patch-src::util.c
new file mode 100644
index 000000000000..67054a740409
--- /dev/null
+++ b/net/gaim/files/patch-src::util.c
@@ -0,0 +1,28 @@
+*** src/util.c.orig Tue Jan 13 14:49:00 2004
+--- src/util.c Tue Jan 13 14:49:11 2004
+***************
+*** 2081,2089 ****
+ static size_t
+ parse_content_len(const char *data, size_t data_len)
+ {
+! size_t content_len = 0;
+
+! sscanf(data, "Content-Length: %d", (int *)&content_len);
+
+ return content_len;
+ }
+--- 2081,2094 ----
+ static size_t
+ parse_content_len(const char *data, size_t data_len)
+ {
+! int content_len = 0;
+! char *tmp;
+
+! tmp = g_malloc(data_len + 1);
+! memcpy(tmp, data, data_len);
+! tmp[data_len] = '\0';
+! sscanf(tmp, "Content-Length: %d", &content_len);
+! g_free(tmp);
+
+ return content_len;
+ }