X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fscansbr.c;h=04958388be8349796f5279c9c851b49746499cea;hp=feef5c0495be89910ff621cdf9b4651ec6aabf67;hb=e78afec69f277159f4b821b02b2280cb05b270bb;hpb=ac3066d2d563ce3b9de66195f6818eecb594fec2 diff --git a/uip/scansbr.c b/uip/scansbr.c index feef5c0..0495838 100644 --- a/uip/scansbr.c +++ b/uip/scansbr.c @@ -107,6 +107,9 @@ scan(FILE *inb, int innum, int outnum, char *fmtstr, int width, int curflg, for (compnum = 1, state = FLD2; ; ) { state = m_getfld2(state, &f, inb); switch (state) { + case LENERR2: + state = FLD2; + /* FALL */ case FLD2: compnum++; if (incing) { @@ -191,16 +194,14 @@ body:; } goto finished; - case LENERR2: - advise(NULL, "line \"%s\" too long", trim(f.value)); - goto handleerror; - case FMTERR2: if (strncmp("From ", f.value, 5)==0) { state = FILEEOF2; goto finished; } - /* FALL */ + compnum++; + advise(NULL, "formate error in component #%d", compnum); + continue; case IOERR2: handleerror:;