summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-11-01 23:31:55 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-11-01 23:31:55 +0000
commitf5ed3550b6636b7f4a747d5879d0ff9942ddfa41 (patch)
tree04c7c68cc2edefd2411157c14973d9e27d011664 /bin
parentbf112579d3d7f5196a96df884e99f1755ce8a4d2 (diff)
aresize() -> areallocarray()
ok nicm@
Diffstat (limited to 'bin')
-rw-r--r--bin/ksh/shf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/shf.c b/bin/ksh/shf.c
index f61d5de8869..dbd0c309af6 100644
--- a/bin/ksh/shf.c
+++ b/bin/ksh/shf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shf.c,v 1.27 2015/11/01 15:43:55 mmcc Exp $ */
+/* $OpenBSD: shf.c,v 1.28 2015/11/01 23:31:54 mmcc Exp $ */
/*
* Shell file I/O routines
@@ -330,7 +330,7 @@ shf_emptybuf(struct shf *shf, int flags)
!(shf->flags & SHF_ALLOCB))
return EOF;
/* allocate more space for buffer */
- nbuf = aresize(shf->buf, shf->wbsize * 2, shf->areap);
+ nbuf = areallocarray(shf->buf, 2, shf->wbsize, shf->areap);
shf->rp = nbuf + (shf->rp - shf->buf);
shf->wp = nbuf + (shf->wp - shf->buf);
shf->rbsize += shf->wbsize;