diff options
author | 2002-01-28 19:33:21 +0000 | |
---|---|---|
committer | 2002-01-28 19:33:21 +0000 | |
commit | fa3990a9e9cde85867f2c53eec3bda35a813b762 (patch) | |
tree | efe4e10842a0ad4bc91650ef35dbb8349503ba54 | |
parent | Add "boot reboot" to please jason@ and "boot poweroff" to please drahn@. (diff) | |
download | wireguard-openbsd-fa3990a9e9cde85867f2c53eec3bda35a813b762.tar.xz wireguard-openbsd-fa3990a9e9cde85867f2c53eec3bda35a813b762.zip |
fix coredump on apropos; fixes PR# 2320.
art@ ok.
-rw-r--r-- | usr.sbin/afs/src/appl/vos/vos.c | 6 |
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; } |