summaryrefslogtreecommitdiffstats
path: root/apropos.c
diff options
context:
space:
mode:
Diffstat (limited to 'apropos.c')
-rw-r--r--apropos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apropos.c b/apropos.c
index 95c92d03..0d97c82a 100644
--- a/apropos.c
+++ b/apropos.c
@@ -53,7 +53,7 @@ main(int argc, char *argv[])
else
++progname;
- whatis = 0 == strcmp(progname, "whatis");
+ whatis = 0 == strncmp(progname, "whatis", 6);
memset(&paths, 0, sizeof(struct manpaths));
memset(&opts, 0, sizeof(struct opts));