X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/3b2ca65d6c8ffd443caa93bf89b0f9b61d9a4919..b0aa8cdb1c264e42d4931ca24968689c73381278:/uip/post.c diff --git a/uip/post.c b/uip/post.c index d40f55ef..553a2258 100644 --- a/uip/post.c +++ b/uip/post.c @@ -804,8 +804,7 @@ putfmt (char *name, char *str, int *eai, FILE *out) should never have reached this point. Warn about any that are non-empty. */ if (strcmp (str, "\n")) { - char *newline = strchr (str, '\n'); - if (newline) *newline = '\0'; + TrimSuffixC(str, '\n'); if (! whomsw) { advise (NULL, "ignoring header line -- %s: %s", name, str); } @@ -1334,7 +1333,7 @@ pl (void) printf ("\n\t-- Folder Copies --\nfcc:\t"); for (i = 0; i < fccind; i++) printf ("%s%s", fccfold[i], i + 1 < fccind ? ",\n\t" : ""); - printf ("\n"); + putchar('\n'); }