summaryrefslogtreecommitdiff
path: root/mail/procmail/patches
diff options
context:
space:
mode:
authorsimonb <simonb>2004-01-11 06:55:00 +0000
committersimonb <simonb>2004-01-11 06:55:00 +0000
commita63749c34ff4a9b5c7ebd689a9cb4d9cef327367 (patch)
treea855ca72618c826ea737b700838bba9cdd6f9110 /mail/procmail/patches
parent47b1b5dac0680a71ae79881f80ee09e0d96429f4 (diff)
downloadpkgsrc-a63749c34ff4a9b5c7ebd689a9cb4d9cef327367.tar.gz
Pass the size to be reallocated to realloc(), not the address of the
size(!). Fixes "Out of memory as I tried to allocate N bytes" messages that I've been seeing.
Diffstat (limited to 'mail/procmail/patches')
-rw-r--r--mail/procmail/patches/patch-af13
1 files changed, 13 insertions, 0 deletions
diff --git a/mail/procmail/patches/patch-af b/mail/procmail/patches/patch-af
new file mode 100644
index 00000000000..c273905b3d1
--- /dev/null
+++ b/mail/procmail/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1 2004/01/11 06:55:00 simonb Exp $
+
+--- src/pipes.c.orig Tue Sep 11 14:58:44 2001
++++ src/pipes.c
+@@ -194,7 +194,7 @@ perr: progerr(line,excode,pwait==4
+ makeblock(&temp,Stdfilled);
+ tmemmove(temp.p,Stdout,Stdfilled);
+ readdyn(&temp,&Stdfilled,Stdfilled+backlen+1);
+- Stdout=realloc(Stdout,&Stdfilled+1);
++ Stdout=realloc(Stdout,Stdfilled+1);
+ tmemmove(Stdout,temp.p,Stdfilled+1);
+ freeblock(&temp);
+ retStdout(Stdout,pwait&&pipw,!backblock);