Europagate, 1994-1995.
$Log: iso2709.c,v $
- Revision 1.3 1995/02/10 17:05:18 adam
- New function iso2709_display to display MARC records in a
- line-by-line format. The iso2709_cvt function no longer
- prints the record to stderr.
+ Revision 1.4 1995/02/15 17:45:44 adam
+ Bug fix in iso2709 module.
+ * Revision 1.3 1995/02/10 17:05:18 adam
+ * New function iso2709_display to display MARC records in a
+ * line-by-line format. The iso2709_cvt function no longer
+ * prints the record to stderr.
+ *
* Revision 1.2 1995/02/10 16:50:32 adam
* Indicator field moved to 'struct iso2709_dir' from 'struct
* iso2709_field'.
(*fpp)->identifier = NULL;
dpos_n = dpos;
- while (buf[dpos_n] != ISO2709_FS && buf[dpos_n] != ISO2709_IDFS)
+ while (buf[dpos_n] != ISO2709_FS && buf[dpos_n] != ISO2709_IDFS &&
+ buf[dpos_n] != ISO2709_RS)
dpos_n++;
(*fpp)->data = malloc (dpos_n - dpos + 1);
strncpyx ((*fpp)->data, buf+dpos, dpos_n - dpos);
dpos = dpos_n;
- if (buf[dpos] == ISO2709_FS)
+ if (buf[dpos] == ISO2709_FS || buf[dpos] == ISO2709_RS)
break;
fpp = &(*fpp)->next;