X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=util%2Fiso2709o.c;fp=util%2Fiso2709o.c;h=8588ea1a6120380a72221f67f59033c7130996a6;hb=5d2b04d154ff79a61b09f26fff4e60ca95ef4792;hp=1af869361d39993892e8c3b3bc8bcf8eac1e4ed0;hpb=a9236d1e4518f633895f3a879d0bf0de9fc30a58;p=egate.git diff --git a/util/iso2709o.c b/util/iso2709o.c index 1af8693..8588ea1 100644 --- a/util/iso2709o.c +++ b/util/iso2709o.c @@ -4,7 +4,10 @@ * Europagate, 1995. * * $Log: iso2709o.c,v $ - * Revision 1.1 1995/03/28 16:07:07 adam + * Revision 1.2 1995/03/30 14:22:19 adam + * More work on new MARC anchor functions. + * + * Revision 1.1 1995/03/28 16:07:07 adam * New function: iso2709_out. This function is the reverse of iso2709_cvt. * */ @@ -49,7 +52,7 @@ int iso2709_out (Iso2709Rec p, char **buf, int bsize) len += p->indicator_length; for (field = dir->fields; field; field = field->next) { - if (field->identifier) + if (*field->identifier) len += p->identifier_length; len += strlen (field->data); } @@ -93,7 +96,7 @@ int iso2709_out (Iso2709Rec p, char **buf, int bsize) } for (field = dir->fields; field; field = field->next) { - if (field->identifier) + if (*field->identifier) { op[data_p] = ISO2709_IDFS; memcpy (op + data_p+1, field->identifier,