diff options
author | 2018-10-24 06:01:03 +0000 | |
---|---|---|
committer | 2018-10-24 06:01:03 +0000 | |
commit | d95322bb7eaf29cae35b5ec04119262aa2cb0e45 (patch) | |
tree | a49fa9185aa7588ac3c1ecba0cf68fa3dcd4bc97 /bin/csh/parse.c | |
parent | Fix qcow2 disk images for data sizes greater than 4 gigs. (diff) | |
download | wireguard-openbsd-d95322bb7eaf29cae35b5ec04119262aa2cb0e45.tar.xz wireguard-openbsd-d95322bb7eaf29cae35b5ec04119262aa2cb0e45.zip |
Fix some minor issues found by coverity.
OK millert@ and miko@
Diffstat (limited to 'bin/csh/parse.c')
-rw-r--r-- | bin/csh/parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/csh/parse.c b/bin/csh/parse.c index 9b93e26569a..626d212d21a 100644 --- a/bin/csh/parse.c +++ b/bin/csh/parse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.c,v 1.14 2018/09/18 06:56:09 deraadt Exp $ */ +/* $OpenBSD: parse.c,v 1.15 2018/10/24 06:01:03 martijn Exp $ */ /* $NetBSD: parse.c,v 1.6 1995/03/21 09:03:10 cgd Exp $ */ /*- @@ -530,7 +530,7 @@ again: if (n < 0) n = 0; t = xcalloc(1, sizeof(*t)); - av = xcalloc((size_t) (n + 1), sizeof(Char **)); + av = xcalloc(n + 1, sizeof(*av)); t->t_dcom = av; n = 0; if (p2->word[0] == ')') |