Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-verify-pack: get rid of while loop
[gitweb.git]
/
builtin-help.c
diff --git
a/builtin-help.c
b/builtin-help.c
index fb731cc9345e197e710aea611e9519f1e04e0ab8..7a7f7759e592208b4604b6987bce8be46c936882 100644
(file)
--- 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)