summarylogtreecommitdiffstats
path: root/fix_memory_allocation_bug.diff
diff options
context:
space:
mode:
Diffstat (limited to 'fix_memory_allocation_bug.diff')
-rw-r--r--fix_memory_allocation_bug.diff11
1 files changed, 11 insertions, 0 deletions
diff --git a/fix_memory_allocation_bug.diff b/fix_memory_allocation_bug.diff
new file mode 100644
index 00000000000..ba95429226a
--- /dev/null
+++ b/fix_memory_allocation_bug.diff
@@ -0,0 +1,11 @@
+--- a/src/pipes.c.old 2002-12-02 23:45:15.000000000 +0100
++++ b/src/pipes.c 2002-12-02 23:45:24.000000000 +0100
+@@ -194,7 +194,7 @@
+ 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);