summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorStefan Beller <stefanbeller@gmail.com>2014-09-17 14:14:39 +0200
committerJunio C Hamano <gitster@pobox.com>2014-09-18 10:17:53 -0700
commitd333ac178547946271afc41885d3ea9914500a47 (patch)
treeaa1a21d20ce80333339c0c4739f770ac168d1cb2 /help.c
parent746c221ad063854e23661f6898c002c8726f5dad (diff)
downloadgit-d333ac178547946271afc41885d3ea9914500a47.tar.gz
help: fix the size passed to qsortsb/help-unknown-command-sort-fix
We actually want to have the size of one 'name' and not the size of the pointer. Signed-off-by: Stefan Beller <stefanbeller@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'help.c')
-rw-r--r--help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/help.c b/help.c
index fd87bb5aee..3678d6a98b 100644
--- a/help.c
+++ b/help.c
@@ -312,7 +312,7 @@ const char *help_unknown_cmd(const char *cmd)
add_cmd_list(&main_cmds, &aliases);
add_cmd_list(&main_cmds, &other_cmds);
qsort(main_cmds.names, main_cmds.cnt,
- sizeof(main_cmds.names), cmdname_compare);
+ sizeof(*main_cmds.names), cmdname_compare);
uniq(&main_cmds);
/* This reuses cmdname->len for similarity index */