*/
for (compnum = 1, state = FLD2;;) {
switch (state = m_getfld2(state, &f, in)) {
+ case LENERR2:
+ state = FLD2;
+ /* FALL */
case FLD2:
compnum++;
ct->c_begin = ftell(in);
break;
- case LENERR2:
case FMTERR2:
+ advise(NULL, "message format error in component #%d", compnum);
+ state = FLD2;
+ continue;
+
case IOERR2:
- adios(EX_DATAERR, NULL, "message format error in component #%d",
- compnum);
+ adios(EX_IOERR, "m_getfld2", "io error");
default:
adios(EX_SOFTWARE, NULL, "getfld() returned %d", state);
** one, return the entire value. Note that, for example, a name_suffix
** of name will match filename="foo", and return foo.
*/
-static char *
+char *
extract_name_value(char *name_suffix, char *value) {
char *extracted_name_value = value;
char *name_suffix_plus_quote = concat(name_suffix, "=\"", NULL);