X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmarcdisp.c;h=a5084ce35a02b81b66b4101200cab5d713f60a6e;hb=4ce7bffcae2b1faaa0fb5d74eca9aeeb7f6d0c6e;hp=a11f9dc07c301b232aa43973e2f5f4f184c2591e;hpb=3a36217ed64fc7c30c3c886d85d4f337fe2f9282;p=yaz-moved-to-github.git diff --git a/src/marcdisp.c b/src/marcdisp.c index a11f9dc..a5084ce 100644 --- a/src/marcdisp.c +++ b/src/marcdisp.c @@ -467,7 +467,7 @@ int yaz_marc_write_line(yaz_marc_t mt, WRBUF wr) the code is a single character .. However we've seen multibyte codes, so see how big it really is */ size_t using_code_len = - (identifier_length != 2) ? identifier_length - 1 + (identifier_length > 2) ? identifier_length - 1 : cdata_one_character(mt, s->code_data); @@ -616,7 +616,7 @@ static int yaz_marc_write_marcxml_ns1(yaz_marc_t mt, WRBUF wr, the code is a single character .. However we've seen multibyte codes, so see how big it really is */ size_t using_code_len = - (identifier_length != 2) ? identifier_length - 1 + (identifier_length > 2) ? identifier_length - 1 : cdata_one_character(mt, s->code_data); @@ -786,7 +786,7 @@ int yaz_marc_write_xml(yaz_marc_t mt, xmlNode **root_ptr, the code is a single character .. However we've seen multibyte codes, so see how big it really is */ size_t using_code_len = - (identifier_length != 2) ? identifier_length - 1 + (identifier_length > 2) ? identifier_length - 1 : cdata_one_character(mt, s->code_data);