]> diplodocus.org Git - nmh/commitdiff
uip/folder.c: Use `%s' for plural, not `%c'.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 13 May 2017 22:40:50 +0000 (23:40 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 13 May 2017 22:40:50 +0000 (23:40 +0100)
Instead of a ternary operator with 's' and ' ' as the outcomes, switch
the format specifier from `%c' to `%s' and use strings "s" and " ".

uip/folder.c

index 68e9182dddf95f154d3420dd3f028a823f4cace9..5fd411cd40f0260808239a9a6b20d5d8a34e35ba 100644 (file)
@@ -591,8 +591,8 @@ print_folders (void)
     if (ftotal > 0 || (all && !fshort && ftotal >= 0)) {
        if (all)
            putchar('\n');
     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" : "");
     }
 
                total_folders, total_folders != 1 ? "s" : "");
     }