X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fmarcdisp.c;h=b7288727df874a332867779ff9287773078c0b41;hb=4b3d1e197d75fcb2607be8d86d244f20c4180000;hp=8b72818108eabd416dfc702db6d266382296007d;hpb=4d531a1a9131d69c3b6c27fbac42837e22cff61c;p=yaz-moved-to-github.git diff --git a/util/marcdisp.c b/util/marcdisp.c index 8b72818..b728872 100644 --- a/util/marcdisp.c +++ b/util/marcdisp.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: marcdisp.c,v 1.28 2003-01-06 08:20:28 adam Exp $ + * $Id: marcdisp.c,v 1.30 2003-07-14 12:59:23 adam Exp $ */ #if HAVE_CONFIG_H @@ -24,7 +24,7 @@ struct yaz_marc_t_ { yaz_marc_t yaz_marc_create(void) { - yaz_marc_t mt = xmalloc(sizeof(*mt)); + yaz_marc_t mt = (yaz_marc_t) xmalloc(sizeof(*mt)); mt->xml = YAZ_MARC_LINE; mt->debug = 0; mt->m_wr = wrbuf_alloc(); @@ -56,6 +56,12 @@ static void marc_cdata (yaz_marc_t mt, const char *buf, size_t len, WRBUF wr) case '&': wrbuf_puts(wr, "&"); break; + case '"': + wrbuf_puts(wr, """); + break; + case '\'': + wrbuf_puts(wr, "'"); + break; default: wrbuf_putc(wr, buf[i]); }