]> diplodocus.org Git - nmh/blobdiff - uip/post.c
Remove ./configure's --enable-debug support; it did nothing.
[nmh] / uip / post.c
index d40f55efb1b1d18df07b17f652228b2f07c925b8..13dbb58ae4d996e08d60c0fcb0fc09acd89c2aa8 100644 (file)
@@ -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")) {
               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);
                }
                if (! whomsw) {
                    advise (NULL, "ignoring header line -- %s: %s", name, str);
                }