X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/5cb3431b8210554b89425d60b3c0aa4f521b7414..2a6df06eae308f5cdde1b5fb0d004a60a1b0ebe5:/uip/post.c diff --git a/uip/post.c b/uip/post.c index 95b23aab..385aae20 100644 --- a/uip/post.c +++ b/uip/post.c @@ -623,7 +623,7 @@ main (int argc, char **argv) case FLD: case FLDPLUS: compnum++; - cp = add (buf, NULL); + cp = mh_xstrdup(buf); while (state == FLDPLUS) { bufsz = sizeof buf; state = m_getfld (&gstate, name, buf, &bufsz, in); @@ -825,7 +825,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")) { - TrimSuffixC(str, '\n'); + trim_suffix_c(str, '\n'); if (! whomsw) { advise (NULL, "ignoring header line -- %s: %s", name, str); }