summarylogtreecommitdiffstats
path: root/fix_memory_allocation_bug.diff
diff options
context:
space:
mode:
authorAntonio Rojas2022-04-01 20:13:58 +0200
committerAntonio Rojas2022-04-01 20:13:58 +0200
commit524b80a2a8b37d71623571969d09e39ed7ce874e (patch)
treefd4f3a254b8e370c33e60822bed0aa1eea904864 /fix_memory_allocation_bug.diff
downloadaur-524b80a2a8b37d71623571969d09e39ed7ce874e.tar.gz
import from community
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);