From: Ralph Corderoy Date: Sun, 30 Oct 2016 15:25:44 +0000 (+0000) Subject: Replace printf("%s", foo) with fputs(foo, stdout). X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/b9ba14bab3f9eb123457f98bcc090b823ab6bc85?ds=inline;hp=eda0cc87eedfbbe5a15a91a59489e31f69e30998 Replace printf("%s", foo) with fputs(foo, stdout). --- diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index 02ba0bcc..f3f518ec 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -507,7 +507,7 @@ mhl (int argc, char **argv) if (forwall) { if (digest) { - printf ("%s", delim4); + fputs(delim4, stdout); if (volume == 0) { snprintf (buf, sizeof(buf), "End of %s Digest\n", digest); } else { @@ -519,7 +519,7 @@ mhl (int argc, char **argv) *cp++ = '*'; *cp++ = '\n'; *cp = 0; - printf ("%s", buf); + fputs(buf, stdout); } else printf ("\n------- End of Forwarded Message%s\n", @@ -944,7 +944,7 @@ mhlfile (FILE *fp, char *mname, int ofilen, int ofilec) if (forwall) { if (digest) - printf ("%s", ofilen == 1 ? delim3 : delim4); + fputs(ofilen == 1 ? delim3 : delim4, stdout); else { printf ("\n-------"); if (ofilen == 1) diff --git a/uip/prompter.c b/uip/prompter.c index 164ff52a..900572b2 100644 --- a/uip/prompter.c +++ b/uip/prompter.c @@ -214,7 +214,7 @@ main (int argc, char **argv) while (state == FLDPLUS) { fieldsz = sizeof field; state = m_getfld (&gstate, name, field, &fieldsz, in); - printf ("%s", field); + fputs(field, stdout); fputs(field, out); } } else { @@ -269,7 +269,7 @@ abort: do { fputs(field, out); if (!rapid && !sigint) - printf ("%s", field); + fputs(field, stdout); } while (state == BODY && (fieldsz = sizeof field, state = m_getfld (&gstate, name, field, &fieldsz, in))); diff --git a/uip/slocal.c b/uip/slocal.c index a282eaf0..41eda311 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -1367,7 +1367,7 @@ adorn (char *what, char *fmt, ...) if (*what) printf(" %s: ", what); if ((s = strerror (eindex))) - printf("%s", s); + fputs(s, stdout); else printf("Error %d", eindex); }