aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/subcmd/help.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/subcmd/help.c')
-rw-r--r--tools/lib/subcmd/help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/subcmd/help.c b/tools/lib/subcmd/help.c
index ba970a73d053..0310520f918e 100644
--- a/tools/lib/subcmd/help.c
+++ b/tools/lib/subcmd/help.c
@@ -171,7 +171,7 @@ static void list_commands_in_dir(struct cmdnames *cmds,
171 while ((de = readdir(dir)) != NULL) { 171 while ((de = readdir(dir)) != NULL) {
172 int entlen; 172 int entlen;
173 173
174 if (prefixcmp(de->d_name, prefix)) 174 if (!strstarts(de->d_name, prefix))
175 continue; 175 continue;
176 176
177 astrcat(&buf, de->d_name); 177 astrcat(&buf, de->d_name);