X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/0298e050ec1f14cd590771612ad5a88d0bc9e9de..98c2e7d95bda262ef23e8f0838e5b86d08ed4e4f:/uip/slocal.c diff --git a/uip/slocal.c b/uip/slocal.c index a282eaf0..0e3baae4 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -452,7 +452,7 @@ usr_delivery (int fd, char *delivery, int su) if (*buffer == '#' || *buffer == '\n') continue; - TrimSuffixC(buffer, '\n'); + trim_suffix_c(buffer, '\n'); /* split buffer into fields */ vecp = split (buffer, vec); @@ -735,7 +735,7 @@ parse (int fd) switch (state = m_getfld (&gstate, name, field, &fieldsz, in)) { case FLD: case FLDPLUS: - lp = add (field, NULL); + lp = mh_xstrdup(field); while (state == FLDPLUS) { fieldsz = sizeof field; state = m_getfld (&gstate, name, field, &fieldsz, in); @@ -1253,7 +1253,7 @@ you_lose: while (fgets (buffer, sizeof(buffer), qfp)) { if (first) { first = 0; - if (HasPrefix(buffer, "From ")) { + if (has_prefix(buffer, "From ")) { /* get copy of envelope information ("From " line) */ envelope = mh_xstrdup(buffer); @@ -1367,7 +1367,7 @@ adorn (char *what, char *fmt, ...) if (*what) printf(" %s: ", what); if ((s = strerror (eindex))) - printf("%s", s); + fputs(s, stdout); else printf("Error %d", eindex); } @@ -1432,7 +1432,7 @@ suppress_duplicates (int fd, char *file) continue; } - cp = add (buf, NULL); + cp = mh_xstrdup(buf); while (state == FLDPLUS) { bufsz = sizeof buf; state = m_getfld (&gstate, name, buf, &bufsz, in);