X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b845433f319067da5b7e0ad2f2a479df0b5cea6b..99873064b5f03ef92885f5e5fcadb4374c39a9ef:/uip/fmttest.c diff --git a/uip/fmttest.c b/uip/fmttest.c index 1a3f633e..90df1e9e 100644 --- a/uip/fmttest.c +++ b/uip/fmttest.c @@ -592,7 +592,7 @@ process_single_file(FILE *in, struct msgs_array *comps, int *dat, int msgsize, struct fmt_callbacks *cb) { int i, state; - char name[NAMESZ], rbuf[BUFSIZ]; + char name[NAMESZ], rbuf[NMH_BUFSIZ]; m_getfld_state_t gstate = 0; struct comp *c; int bufsz; @@ -625,7 +625,7 @@ process_single_file(FILE *in, struct msgs_array *comps, int *dat, int msgsize, * Read in the message and process the components */ - for (state = FLD;;) { + for (;;) { bufsz = sizeof(rbuf); state = m_getfld(&gstate, name, rbuf, &bufsz, in); switch (state) { @@ -650,8 +650,7 @@ process_single_file(FILE *in, struct msgs_array *comps, int *dat, int msgsize, if (fmt_findcomp("body")) { if ((i = strlen(rbuf)) < outwidth) { bufsz = min (outwidth, (int) sizeof rbuf - i); - state = m_getfld(&gstate, name, rbuf + i, - &bufsz, in); + m_getfld(&gstate, name, rbuf + i, &bufsz, in); } fmt_addcomptext("body", rbuf);