X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fpick.c;h=4cb33fb189b7aa92494543ff65234022d6c2d246;hp=5df2861a2c19b6ca03f4c483a4fe9cb70342d561;hb=f78e7c6e6e616cc4ff2bee8a726365fafef2d8ce;hpb=04a3dfc70394a517a79340a7d3ecd9c6a23d0bee diff --git a/uip/pick.c b/uip/pick.c index 5df2861..4cb33fb 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -70,6 +70,8 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; + /* ** static prototypes */ @@ -1249,6 +1251,10 @@ plist fseek(fp, start, SEEK_SET); for (state = FLD2, bp = NULL;;) { switch (state = m_getfld2(state, &f, fp)) { + case LENERR2: + state = FLD2; + /* FALL */ + case FLD2: if (bp) { mh_free0(&bp); @@ -1259,10 +1265,13 @@ plist } continue; - case LENERR2: case FMTERR2: - case IOERR2: advise(NULL, "format error in message %d", msgnum); + state = FLD2; + continue; + + case IOERR2: + adios(EX_IOERR, "m_getfld2", "io error on message %d", msgnum); /* FALL */ case BODY2: