X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/3b2ca65d6c8ffd443caa93bf89b0f9b61d9a4919..8eacff500716cab8256b032c0f4dd29bc2dc16bb:/uip/post.c?ds=sidebyside diff --git a/uip/post.c b/uip/post.c index d40f55ef..13dbb58a 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); }