summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-01-28 19:33:22 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-01-28 19:33:22 +0000
commitb58e0d486fc07884ea1bc92e6a346542bd16a64d (patch)
tree1b7af38fa1384c03b664e362567a927f51a3cd19 /usr.sbin
parentcf96f3f2698743ac9b2583dcee080d2cf2b18cd2 (diff)
fix coredump on apropos; fixes PR# 2320.
art@ ok.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/afs/src/appl/vos/vos.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/afs/src/appl/vos/vos.c b/usr.sbin/afs/src/appl/vos/vos.c
index 8835ae52219..7f1a030bec3 100644
--- a/usr.sbin/afs/src/appl/vos/vos.c
+++ b/usr.sbin/afs/src/appl/vos/vos.c
@@ -40,7 +40,7 @@
#include <sl.h>
#include "vos_local.h"
-RCSID("$Id: vos.c,v 1.1 2000/09/11 14:40:37 art Exp $");
+RCSID("$Id: vos.c,v 1.2 2002/01/28 19:33:21 fgsch Exp $");
int vos_interactive = 0;
@@ -132,8 +132,8 @@ help_cmd(int argc, char **argv)
static int
apropos_cmd(int argc, char **argv)
{
- if (argc == 0) {
- fprintf (stderr, "apropos: missing topic");
+ if (argc < 2) {
+ fprintf (stderr, "apropos: missing topic\n");
return 0;
}