aboutsummaryrefslogtreecommitdiff
path: root/devel/mime/files
diff options
context:
space:
mode:
authorLars Engels <lme@FreeBSD.org>2010-09-08 18:15:16 +0000
committerLars Engels <lme@FreeBSD.org>2010-09-08 18:15:16 +0000
commite2986bde50d920c72df14307dac2f4b71f8dd9c2 (patch)
tree2adf68a41bfcb5e18d4745bf0e0c6fcad052b0d4 /devel/mime/files
parentc97a64455f94aae9923f225ab928b1aea5499efb (diff)
Notes
Diffstat (limited to 'devel/mime/files')
-rw-r--r--devel/mime/files/patch-message.c11
1 files changed, 7 insertions, 4 deletions
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);