diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-11-02 16:38:36 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-11-02 16:38:36 +0000 |
commit | 668039031ddbfe6ffa2120b2ff6854a69293099c (patch) | |
tree | 38b7049c411f581518f40e81ab12e74e37415635 /bin | |
parent | 93e7798dbebb58d8b449923cb2a715f86ae4d948 (diff) |
Another aresize() -> areallocarray().
ok nicm@
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ksh/history.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/history.c b/bin/ksh/history.c index 9b3f73eddd6..824e20619f9 100644 --- a/bin/ksh/history.c +++ b/bin/ksh/history.c @@ -1,4 +1,4 @@ -/* $OpenBSD: history.c,v 1.52 2015/11/01 15:38:53 mmcc Exp $ */ +/* $OpenBSD: history.c,v 1.53 2015/11/02 16:38:35 mmcc Exp $ */ /* * command history @@ -507,7 +507,7 @@ sethistsize(int n) cursize = n; } - history = (char **)aresize(history, n*sizeof(char *), APERM); + history = areallocarray(history, n, sizeof(char *), APERM); histsize = n; histptr = history + cursize; |