summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rc/io.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@rei2.9hal>2012-02-08 04:09:48 +0100
committercinap_lenrek <cinap_lenrek@rei2.9hal>2012-02-08 04:09:48 +0100
commitf2f19dd888da68f3513f43d493dfc98ca18209ce (patch)
treed2c5f1b1d034e7b0cf2e7ae7c11c15009e509dcd /sys/src/cmd/rc/io.c
parent061d55111b677de4810fa8fd4a8f05907adaef8b (diff)
rc: change plan9 envname limit to 128, cleanup
Diffstat (limited to 'sys/src/cmd/rc/io.c')
-rw-r--r--sys/src/cmd/rc/io.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/src/cmd/rc/io.c b/sys/src/cmd/rc/io.c
index 5480265cf..8b2ba97ee 100644
--- a/sys/src/cmd/rc/io.c
+++ b/sys/src/cmd/rc/io.c
@@ -178,9 +178,7 @@ flush(io *f)
if(f->strp){
n = f->ebuf - f->strp;
- f->strp = realloc(f->strp, n+Stralloc+1);
- if(f->strp==0)
- panic("Can't realloc %d bytes in flush!", n+Stralloc+1);
+ f->strp = erealloc(f->strp, n+Stralloc+1);
f->bufp = f->strp + n;
f->ebuf = f->bufp + Stralloc;
memset(f->bufp, '\0', Stralloc+1);