X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=help.c;h=6c46d8b4949c4ad70ca6abc7edb4f7926c889a5a;hb=3c2eb80f;hp=fd87bb5aeec82beec600be46248b19b13bb33804;hpb=417653777a1d073f53b2053cf0b0838a35cfc7d5;p=git.git diff --git a/help.c b/help.c index fd87bb5ae..6c46d8b49 100644 --- a/help.c +++ b/help.c @@ -100,7 +100,7 @@ static void pretty_print_string_list(struct cmdnames *cmds, int longest) if (space < max_cols) cols = max_cols / space; - rows = (cmds->cnt + cols - 1) / cols; + rows = DIV_ROUND_UP(cmds->cnt, cols); for (i = 0; i < rows; i++) { printf(" ");