diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-08-09 02:23:49 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-08-09 02:23:49 +0000 |
commit | 5b8661f41f136285b6cb375253e371eadcb2deb2 (patch) | |
tree | 1bb1d78f0211c2ccb6f49fb7cf2b70d14f510d69 /usr.bin/pmdb | |
parent | 8f23f47c2cb28a2533bfeee9c7f2fafa778465fb (diff) |
Correct the size arg to memset() so argv will be cleared correctly; art@ ok.
Diffstat (limited to 'usr.bin/pmdb')
-rw-r--r-- | usr.bin/pmdb/clit.c | 4 |
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); |