]> granicus.if.org Git - libexpat/commitdiff
Fix bug with XML_UNICODE support and duplicate attributes.
authorJames Clark <jjc@jclark.com>
Sun, 31 May 1998 10:14:02 +0000 (10:14 +0000)
committerJames Clark <jjc@jclark.com>
Sun, 31 May 1998 10:14:02 +0000 (10:14 +0000)
expat/xmlparse/xmlparse.c

index 66ab56376f57397e3e46ecc423df3278430d4172..bc8bc3155bbccb03050d3ed10b281af0f2f535ba 100755 (executable)
@@ -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;
 }