From: Ralph Corderoy Date: Sat, 13 May 2017 22:40:50 +0000 (+0100) Subject: uip/folder.c: Use `%s' for plural, not `%c'. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/237a4145c1557c7f6e950afbad4848504cc334b4?hp=de237d4dc2cafee55bd50a15fbeb2d7a880a87cf uip/folder.c: Use `%s' for plural, not `%c'. Instead of a ternary operator with 's' and ' ' as the outcomes, switch the format specifier from `%c' to `%s' and use strings "s" and " ". --- diff --git a/uip/folder.c b/uip/folder.c index 68e9182d..5fd411cd 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -591,8 +591,8 @@ print_folders (void) if (ftotal > 0 || (all && !fshort && ftotal >= 0)) { if (all) putchar('\n'); - printf ("TOTAL = %d message%c in %d folder%s.\n", - total_msgs, total_msgs != 1 ? 's' : ' ', + printf ("TOTAL = %d message%s in %d folder%s.\n", + total_msgs, total_msgs != 1 ? "s" : "", total_folders, total_folders != 1 ? "s" : ""); }