X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fopac_to_xml.c;h=1f0c9a3115aa58a31d4d010c472800e07a07d97a;hp=2e37091ee06075dd9eb0d45a132a12cfec065fbe;hb=e33389ee14d909d3a1b9874a40aa1b53c3fe42be;hpb=d0ef47f9201e7316a04f8b1c9d8e7799d9eb8d8a diff --git a/src/opac_to_xml.c b/src/opac_to_xml.c index 2e37091..1f0c9a3 100644 --- a/src/opac_to_xml.c +++ b/src/opac_to_xml.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2013 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ /** @@ -31,10 +31,11 @@ static void opac_element_str(WRBUF wrbuf, yaz_iconv_t cd1, yaz_iconv_t cd2, wrbuf_puts(wrbuf, ">"); pos = wrbuf->pos; /* save position */ - if (wrbuf_iconv_write_x(wrbuf, cd1, data, strlen(data), 1) && cd2) + if (wrbuf_iconv_write2(wrbuf, cd1, data, strlen(data), wrbuf_xmlputs_n) + && cd2) { wrbuf->pos = pos; /* rewind to pos */ - wrbuf_iconv_write_x(wrbuf, cd2, data, strlen(data), 1); + wrbuf_iconv_write2(wrbuf, cd2, data, strlen(data), wrbuf_xmlputs_n); } wrbuf_puts(wrbuf, "