X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmarcdisp.c;h=6ae2f61e0a3f7c99f786d483a627b714c4467800;hb=a3e65bcd3250b107397675bc65b35b5939355025;hp=00d1ed88b7bf7bfa8f8ed1b3e0bdeaf5c5e03775;hpb=47d9d5ac3241f8db09ba19a1a5c1fdd5e140e75f;p=yaz-moved-to-github.git diff --git a/src/marcdisp.c b/src/marcdisp.c index 00d1ed8..6ae2f61 100644 --- a/src/marcdisp.c +++ b/src/marcdisp.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. */ @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include @@ -1193,8 +1192,7 @@ int yaz_marc_write_iso2709(yaz_marc_t mt, WRBUF wr) switch(n->which) { case YAZ_MARC_DATAFIELD: - wrbuf_printf(wr, "%.*s", indicator_length, - n->u.datafield.indicator); + wrbuf_write(wr, n->u.datafield.indicator, indicator_length); for (s = n->u.datafield.subfields; s; s = s->next) { wrbuf_putc(wr, ISO2709_IDFS);