diff options
Diffstat (limited to 'builtin-help.c')
-rw-r--r-- | builtin-help.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-help.c b/builtin-help.c index fb731cc93..7a7f7759e 100644 --- a/builtin-help.c +++ b/builtin-help.c @@ -140,7 +140,7 @@ static void list_commands(const char *exec_path, const char *pattern) continue; entlen = strlen(de->d_name); - if (4 < entlen && !strcmp(de->d_name + entlen - 4, ".exe")) + if (has_extension(de->d_name, entlen, ".exe")) entlen -= 4; if (longest < entlen) |