edd8c49bad
size(!). Fixes "Out of memory as I tried to allocate N bytes" messages that I've been seeing.
13 lines
509 B
Text
13 lines
509 B
Text
$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);
|