summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2002-08-09 02:23:49 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2002-08-09 02:23:49 +0000
commit5b8661f41f136285b6cb375253e371eadcb2deb2 (patch)
tree1bb1d78f0211c2ccb6f49fb7cf2b70d14f510d69
parent8f23f47c2cb28a2533bfeee9c7f2fafa778465fb (diff)
Correct the size arg to memset() so argv will be cleared correctly; art@ ok.
-rw-r--r--usr.bin/pmdb/clit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/pmdb/clit.c b/usr.bin/pmdb/clit.c
index d73e571cea6..10cce14ed65 100644
--- a/usr.bin/pmdb/clit.c
+++ b/usr.bin/pmdb/clit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clit.c,v 1.3 2002/07/12 00:24:53 deraadt Exp $ */
+/* $OpenBSD: clit.c,v 1.4 2002/08/09 02:23:48 aaron Exp $ */
/*
* Copyright (c) 2002 Artur Grabowski <art@openbsd.org>
* All rights reserved.
@@ -207,7 +207,7 @@ cmdloop(void *arg)
HistEvent ev;
#endif
- memset(argv, 0, sizeof(argv));
+ memset(argv, 0, sizeof(char *) * maxargs);
#ifdef __NetBSD__
history(hist, &ev, H_ENTER, elline);