]> diplodocus.org Git - nmh/blobdiff - uip/post.c
Suppress getcanon exit status check.
[nmh] / uip / post.c
index 95b23aabb540fc4fc8b98bdbd657b2b6ddf056a0..385aae20f5d703ce717b86e3ccf1d978c6ddec6a 100644 (file)
@@ -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);
                }