aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-04-09 18:04:18 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-04-09 18:04:18 +0300
commit24ddf2742b0034089bce38e5f4ebd99b93c6e161 (patch)
treef1bebfcf20d78673b656122b0258c5054a999562 /io.c
parent9091a155190093c3d2dbbed4bd29b0feec50c8ce (diff)
downloadegawk-24ddf2742b0034089bce38e5f4ebd99b93c6e161.tar.gz
egawk-24ddf2742b0034089bce38e5f4ebd99b93c6e161.tar.bz2
egawk-24ddf2742b0034089bce38e5f4ebd99b93c6e161.zip
Further fixes from Andrew Schorr.
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index da3a04cd..1c3d6e24 100644
--- a/io.c
+++ b/io.c
@@ -3164,7 +3164,7 @@ iop_finish(IOBUF *iop)
lintwarn(_("data file `%s' is empty"), iop->public.name);
iop->errcode = errno = 0;
iop->count = iop->scanoff = 0;
- emalloc(iop->buf, char *, iop->size += 2, "iop_finish");
+ emalloc(iop->buf, char *, iop->size += 1, "iop_finish");
iop->off = iop->buf;
iop->dataend = NULL;
iop->end = iop->buf + iop->size;