X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fprompter.c;h=bc7cd43f6454dea9fe49df51e28b4b5d0ae2752a;hp=c7eb95787faad7b09aad5bc1e4074972d9b2aa09;hb=ac3066d2d563ce3b9de66195f6818eecb594fec2;hpb=b16c039dc21faa0d68a0ba45eab857895e82439b diff --git a/uip/prompter.c b/uip/prompter.c index c7eb957..bc7cd43 100644 --- a/uip/prompter.c +++ b/uip/prompter.c @@ -140,6 +140,10 @@ main(int argc, char **argv) */ for (state = FLD2;;) { switch (state = m_getfld2(state, &f, in)) { + case LENERR2: + advise(NULL, "Header to long"); + state = FLD2; + /* FALL */ case FLD2: /* ** Check if the value of field contains @@ -212,6 +216,9 @@ abort: } } while ((state = m_getfld2(state, &f, in)) ==BODY2); + if (state != FILEEOF2) { + adios(EX_IOERR, "m_getfld2", "io error"); + } } if (prepend || !qbody) { @@ -230,8 +237,11 @@ has_no_body: } break; + case FMTERR2: + advise(NULL, "skeleton is poorly formatted"); + continue; default: - adios(EX_DATAERR, NULL, "skeleton is poorly formatted"); + adios(EX_IOERR, "m_getfld2", "io error"); } break; }