summaryrefslogtreecommitdiff
path: root/mail/procmail/files
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2010-12-06 10:14:59 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2010-12-06 10:14:59 +0000
commit7a915d830d8d0b697f01b945f892267415dfd0b8 (patch)
tree04886b6bb8c6c6af5ccca4f13fd8f5e4596dbd6c /mail/procmail/files
parentDo not touch /etc/manpath.config on -CURRENT after man.d/perl.conf is used (diff)
Fix a segfault problem with header only filter.
Diffstat (limited to 'mail/procmail/files')
-rw-r--r--mail/procmail/files/patch-src:mailfold.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/mail/procmail/files/patch-src:mailfold.c b/mail/procmail/files/patch-src:mailfold.c
new file mode 100644
index 000000000000..a95d5eb24802
--- /dev/null
+++ b/mail/procmail/files/patch-src:mailfold.c
@@ -0,0 +1,12 @@
+--- src/mailfold.c.orig 2001-09-11 08:58:34.000000000 +0400
++++ src/mailfold.c 2010-12-06 12:55:44.000000000 +0300
+@@ -378,7 +378,8 @@
+ dfilled=mailread=0;
+ else if(rhead) /* only read in a new header */
+ { memblk new;
+- dfilled=mailread=0;makeblock(&new,0);readdyn(&new,&dfilled,0);
++ dfilled=mailread=0;makeblock(&new,0);
++ readdyn(&new,&dfilled,thebody-themail.p);
+ if(tobesent>dfilled&&isprivate) /* put it in place here */
+ { tmemmove(themail.p+dfilled,thebody,filled-=tobesent);
+ tmemmove(themail.p,new.p,dfilled);