]> granicus.if.org Git - libexpat/commitdiff
Fix record_element_start_handler() to use XML_Char correctly
authorRhodri James <rhodri@kynesim.co.uk>
Tue, 22 Aug 2017 14:41:15 +0000 (15:41 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Tue, 29 Aug 2017 21:13:14 +0000 (23:13 +0200)
expat/tests/runtests.c

index 679f705a07a7a734ea092aea6f9fbf8d559099ad..156608fe435a9b6e158944e299f7d36852c6a988 100644 (file)
@@ -4870,7 +4870,7 @@ record_element_start_handler(void *userData,
                              const XML_Char *name,
                              const XML_Char **UNUSED_P(atts))
 {
-    CharData_AppendString((CharData *)userData, name);
+    CharData_AppendXMLChars((CharData *)userData, name, xcstrlen(name));
 }
 
 START_TEST(test_nested_groups)