aboutsummaryrefslogtreecommitdiff
path: root/devel/mime
diff options
context:
space:
mode:
Diffstat (limited to 'devel/mime')
-rw-r--r--devel/mime/Makefile7
-rw-r--r--devel/mime/files/patch-message.c11
2 files changed, 11 insertions, 7 deletions
diff --git a/devel/mime/Makefile b/devel/mime/Makefile
index a2b78343673b..6078a7a0ac65 100644
--- a/devel/mime/Makefile
+++ b/devel/mime/Makefile
@@ -7,11 +7,12 @@
PORTNAME= mime
PORTVERSION= 1.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel
-MASTER_SITES= http://resnet.uoregon.edu/~gurney_j/jmpc/dist/
+MASTER_SITES= http://resnet.uoregon.edu/~gurney_j/jmpc/dist/ \
+ http://people.bsdgroup.de/~as/freebsd/distfiles/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= as@bsdgroup.de
COMMENT= C library to parse mime data
GNU_CONFIGURE= yes
diff --git a/devel/mime/files/patch-message.c b/devel/mime/files/patch-message.c
index 1a2571821c76..8c507080df10 100644
--- a/devel/mime/files/patch-message.c
+++ b/devel/mime/files/patch-message.c
@@ -1,5 +1,5 @@
---- message.c.orig Tue Sep 16 03:37:19 2003
-+++ message.c Sun Oct 30 23:38:44 2005
+--- message.c.orig Tue Aug 31 10:14:24 2010
++++ message.c Tue Aug 31 10:14:10 2010
@@ -89,7 +89,7 @@
* XXX - need to be fixed to support "\r\n"
*/
@@ -9,9 +9,12 @@
free(bdcm);
if (bdlc != pos) {
-@@ -146,8 +146,8 @@
+@@ -144,10 +144,10 @@
+ len -= strlen(strstr(bdnorm, "--"));
+
for (;;) {
- ret = realloc(ret, sizeof *ret * *cnt + 1);
+- ret = realloc(ret, sizeof *ret * *cnt + 1);
++ ret = realloc(ret, sizeof(*ret) * (*cnt + 1));
- if ((next = memmem(msg, len, bdnorm, bdnormlen)) == NULL)
- next = memmem(msg, len, bdtail, bdtaillen);