X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/f1595ee7fc4db1bf8c50b00a796fb3f9b1d66c21..9322ba2854211794c27fae9468768b80b767c211:/uip/show.c diff --git a/uip/show.c b/uip/show.c index 25ed7573..7fb4cfae 100644 --- a/uip/show.c +++ b/uip/show.c @@ -96,6 +96,7 @@ main (int argc, char **argv) goto non_mhl_switches; case NHEADSW: headersw = 0; + /* FALLTHRU */ case CONCATSW: case NCONCATSW: non_mhl_switches: @@ -386,7 +387,7 @@ is_nontext (char *msgnam) int passno; char c; - cp = add (buf, NULL); + cp = mh_xstrdup(buf); while (state == FLDPLUS) { bufsz = sizeof buf; state = m_getfld (&gstate, name, buf, &bufsz, fp); @@ -413,7 +414,7 @@ invalid: continue; case '(': i++; - /* and fall... */ + /* FALLTHRU */ default: continue; case ')': @@ -491,7 +492,7 @@ out: * Check Content-Transfer-Encoding field */ if (!strcasecmp (name, ENCODING_FIELD)) { - cp = add (buf, NULL); + cp = mh_xstrdup(buf); while (state == FLDPLUS) { bufsz = sizeof buf; state = m_getfld (&gstate, name, buf, &bufsz, fp);