X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b9ba14bab3f9eb123457f98bcc090b823ab6bc85..98c2e7d95bda262ef23e8f0838e5b86d08ed4e4f:/uip/slocal.c diff --git a/uip/slocal.c b/uip/slocal.c index 41eda311..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); @@ -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);