summaryrefslogtreecommitdiffstats
path: root/bin/csh/csh.c
diff options
context:
space:
mode:
authormartijn <martijn@openbsd.org>2018-10-24 06:01:03 +0000
committermartijn <martijn@openbsd.org>2018-10-24 06:01:03 +0000
commitd95322bb7eaf29cae35b5ec04119262aa2cb0e45 (patch)
treea49fa9185aa7588ac3c1ecba0cf68fa3dcd4bc97 /bin/csh/csh.c
parentFix qcow2 disk images for data sizes greater than 4 gigs. (diff)
downloadwireguard-openbsd-d95322bb7eaf29cae35b5ec04119262aa2cb0e45.tar.xz
wireguard-openbsd-d95322bb7eaf29cae35b5ec04119262aa2cb0e45.zip
Fix some minor issues found by coverity.
OK millert@ and miko@
Diffstat (limited to 'bin/csh/csh.c')
-rw-r--r--bin/csh/csh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/csh/csh.c b/bin/csh/csh.c
index 0bf879c8b5e..9709b7cdee6 100644
--- a/bin/csh/csh.c
+++ b/bin/csh/csh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: csh.c,v 1.44 2018/09/08 01:28:39 miko Exp $ */
+/* $OpenBSD: csh.c,v 1.45 2018/10/24 06:01:03 martijn Exp $ */
/* $NetBSD: csh.c,v 1.14 1995/04/29 23:21:28 mycroft Exp $ */
/*-
@@ -578,7 +578,7 @@ importpath(Char *cp)
* i+2 where i is the number of colons in the path. There are i+1
* directories in the path plus we need room for a zero terminator.
*/
- pv = (Char **) xcalloc((size_t) (i + 2), sizeof(Char **));
+ pv = xcalloc(i + 2, sizeof(*pv));
dp = cp;
i = 0;
if (*dp)