diff options
author | Antonio Rojas | 2022-04-01 20:13:58 +0200 |
---|---|---|
committer | Antonio Rojas | 2022-04-01 20:13:58 +0200 |
commit | 524b80a2a8b37d71623571969d09e39ed7ce874e (patch) | |
tree | fd4f3a254b8e370c33e60822bed0aa1eea904864 /fix_memory_allocation_bug.diff | |
download | aur-524b80a2a8b37d71623571969d09e39ed7ce874e.tar.gz |
import from community
Diffstat (limited to 'fix_memory_allocation_bug.diff')
-rw-r--r-- | fix_memory_allocation_bug.diff | 11 |
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 000000000000..ba95429226a7 --- /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); |