Skip to content

Commit 5d7f49d

Browse files
committed
Merge branch 'sb/help-unknown-command-sort-fix'
Code cleanup. * sb/help-unknown-command-sort-fix: help: fix the size passed to qsort
2 parents 5500095 + d333ac1 commit 5d7f49d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

help.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ const char *help_unknown_cmd(const char *cmd)
305305
add_cmd_list(&main_cmds, &aliases);
306306
add_cmd_list(&main_cmds, &other_cmds);
307307
qsort(main_cmds.names, main_cmds.cnt,
308-
sizeof(main_cmds.names), cmdname_compare);
308+
sizeof(*main_cmds.names), cmdname_compare);
309309
uniq(&main_cmds);
310310

311311
/* This abuses cmdname->len for levenshtein distance */

0 commit comments

Comments
 (0)