projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extend test for long lines with CRLF
[mmh]
/
uip
/
pick.c
diff --git
a/uip/pick.c
b/uip/pick.c
index
5df2861
..
4cb33fb
100644
(file)
--- a/
uip/pick.c
+++ b/
uip/pick.c
@@
-70,6
+70,8
@@
static struct swit switches[] = {
{ NULL, 0 }
};
{ NULL, 0 }
};
+char *version=VERSION;
+
/*
** static prototypes
*/
/*
** static prototypes
*/
@@
-1249,6
+1251,10
@@
plist
fseek(fp, start, SEEK_SET);
for (state = FLD2, bp = NULL;;) {
switch (state = m_getfld2(state, &f, fp)) {
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);
case FLD2:
if (bp) {
mh_free0(&bp);
@@
-1259,10
+1265,13
@@
plist
}
continue;
}
continue;
- case LENERR2:
case FMTERR2:
case FMTERR2:
- case IOERR2:
advise(NULL, "format error in message %d", msgnum);
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:
/* FALL */
case BODY2: