From: Andre Noll Date: Sun, 13 May 2018 17:23:33 +0000 (+0200) Subject: com_help(): Fix comma placement. X-Git-Tag: v1.0.1~17 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=dfec53e2395536c9f4d62961d561eee656d79c04;p=tfortune.git com_help(): Fix comma placement. We never want to print a comma at the beginning of the line. --- diff --git a/tfortune.c b/tfortune.c index 0768976..29243fc 100644 --- a/tfortune.c +++ b/tfortune.c @@ -930,11 +930,11 @@ static void show_subcommand_summary(bool verbose) for (i = 0; i < LSG_NUM_TFORTUNE_SUBCOMMANDS; i++) { if (i > 0) n += printf(", "); - n += printf("%s", subcommand_names[i]); if (n > 70) { printf("\n\t"); n = 8; } + n += printf("%s", subcommand_names[i]); } printf("\n"); }