From: Rhodri James Date: Tue, 22 Aug 2017 17:40:13 +0000 (+0100) Subject: Fix test_ns_long_element() to work in UTF-16 builds X-Git-Tag: R_2_2_5~24^2~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17fbf194f8e25bae037024593f73b811836623eb;p=libexpat Fix test_ns_long_element() to work in UTF-16 builds --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index bd0defd0..a999fcef 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -7527,10 +7527,10 @@ START_TEST(test_ns_long_element) " xmlns:foo='http://example.org/' bar:a='12'\n" " xmlns:bar='http://example.org/'>" ""; - const char *elemstr[] = { - "http://example.org/" - " thisisalongenoughelementnametotriggerareallocation foo", - "http://example.org/ a bar" + const XML_Char *elemstr[] = { + XCS("http://example.org/") + XCS(" thisisalongenoughelementnametotriggerareallocation foo"), + XCS("http://example.org/ a bar") }; XML_SetReturnNSTriplet(parser, XML_TRUE);