X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/59ae7b80f479fd5d406cd549f7740849bdc76dc0..683e0fb1a14da5b9ce7bc5db6e76951d14d79348:/uip/post.c diff --git a/uip/post.c b/uip/post.c index 09ca15e5..c81f0fcc 100644 --- a/uip/post.c +++ b/uip/post.c @@ -558,7 +558,7 @@ main (int argc, char **argv) start_headers (); if (debug) { verbose++; - discard (out = stdout); /* XXX: reference discard() to help loader */ + out = stdout; } else { if (whomsw) { if ((out = fopen ("/dev/null", "w")) == NULL) @@ -579,14 +579,16 @@ main (int argc, char **argv) hdrtab = msgstate == NORMAL ? NHeaders : RHeaders; for (compnum = 1, state = FLD;;) { - switch (state = m_getfld (state, name, buf, sizeof(buf), in)) { + int bufsz = sizeof buf; + switch (state = m_getfld (state, name, buf, &bufsz, in)) { case FLD: case FLDEOF: case FLDPLUS: compnum++; cp = add (buf, NULL); while (state == FLDPLUS) { - state = m_getfld (state, name, buf, sizeof(buf), in); + bufsz = sizeof buf; + state = m_getfld (state, name, buf, &bufsz, in); cp = add (buf, cp); } putfmt (name, cp, out); @@ -603,7 +605,8 @@ main (int argc, char **argv) break; fprintf (out, "\n%s", buf); while (state == BODY) { - state = m_getfld (state, name, buf, sizeof(buf), in); + bufsz = sizeof buf; + state = m_getfld (state, name, buf, &bufsz, in); fputs (buf, out); } break; @@ -864,7 +867,7 @@ putfmt (char *name, char *str, FILE *out) they'd have the Blind-Carbon-Copy indication. */ adios (NULL, - "blind aliases not compatible with" + "blind lists not compatible with" " sendmail/pipe"); }