X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=client%2Fclient.c;h=a224fcd25b63c5d05f072853ced2c88186ccf3b4;hb=fc2093cfd23eda0ee8384b18dc7e7b8adffd073a;hp=13cb16c9fb7bec9dbef29e3c0d36f894e39b7aca;hpb=d205d4870b1d64af05e9d6f6a2223086af4cce9e;p=yaz-moved-to-github.git diff --git a/client/client.c b/client/client.c index 13cb16c..a224fcd 100644 --- a/client/client.c +++ b/client/client.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: client.c,v $ - * Revision 1.91 1999-12-16 23:36:19 adam + * Revision 1.92 1999-12-21 16:24:48 adam + * More robust ISO2709 handling (in case of real bad formats). + * + * Revision 1.91 1999/12/16 23:36:19 adam * Implemented ILL protocol. Minor updates ASN.1 compiler. * * Revision 1.90 1999/11/30 13:47:11 adam @@ -753,7 +756,13 @@ static void display_record(Z_DatabaseRecord *p) ent->value == VAL_HTML) print_record(octet_buf, p->u.octet_aligned->len); else - marc_display (octet_buf, NULL); + { + if (marc_display (octet_buf, NULL) <= 0) + { + printf ("ISO2709 decoding failed, dumping record as is:\n"); + print_record(octet_buf, p->u.octet_aligned->len); + } + } if (marcdump) fwrite (octet_buf, 1, p->u.octet_aligned->len, marcdump); }