X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fnfaxml.c;h=2771f56ac7ec2b823a1c68f1d48c7194550ead19;hp=94ef5e67846a7ca648521996f582d684f2367bcd;hb=e4368af2ede9079d33e7a8fd280d29b2bde1d1ad;hpb=fd3a0b7302ceed6425c05b6537cb654201cb1494 diff --git a/src/nfaxml.c b/src/nfaxml.c index 94ef5e6..2771f56 100644 --- a/src/nfaxml.c +++ b/src/nfaxml.c @@ -1,7 +1,7 @@ /* Copyright (C) 2006, Index Data ApS * See the file LICENSE for details. * - * $Id: nfaxml.c,v 1.9 2006-07-14 13:06:38 heikki Exp $ + * $Id: nfaxml.c,v 1.11 2006-10-09 14:22:43 heikki Exp $ */ /** @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -34,24 +35,24 @@ static int utf16_content(xmlNodePtr node, yaz_nfa_char *buf, int maxlen, { int bufidx=0; xmlChar *content = xmlNodeGetContent(node); - xmlChar *cp=content; - int conlen=strlen((char *)content); - int len; - int res; - while (*cp && (bufidx