From: James Clark Date: Sun, 31 May 1998 10:14:02 +0000 (+0000) Subject: Fix bug with XML_UNICODE support and duplicate attributes. X-Git-Tag: beta4~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bddd238db2b7f9dfe484c9397f9d5ebe35ab98c;p=libexpat Fix bug with XML_UNICODE support and duplicate attributes. --- diff --git a/expat/xmlparse/xmlparse.c b/expat/xmlparse/xmlparse.c index 66ab5637..bc8bc315 100755 --- a/expat/xmlparse/xmlparse.c +++ b/expat/xmlparse/xmlparse.c @@ -1142,7 +1142,7 @@ static enum XML_Error storeAtts(XML_Parser parser, const ENCODING *enc, appAtts[i << 1] = 0; } while (i-- > 0) - ((char *)appAtts[i << 1])[-1] = 0; + ((XML_Char *)appAtts[i << 1])[-1] = 0; return XML_ERROR_NONE; }