]> granicus.if.org Git - libexpat/commitdiff
Fix test_misc_alloc_create_parser_with_encoding() to work in UTF-16
authorRhodri James <rhodri@kynesim.co.uk>
Tue, 22 Aug 2017 17:57:50 +0000 (18:57 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Tue, 29 Aug 2017 21:13:15 +0000 (23:13 +0200)
expat/tests/runtests.c

index a250a7892db44b5789d0d3e1965afeaeb359c541..c637dc0c2e5b350dd0beb3b7bf62948c1f42339c 100644 (file)
@@ -7910,7 +7910,7 @@ START_TEST(test_misc_alloc_create_parser_with_encoding)
     /* Try several levels of allocation */
     for (i = 0; i < max_alloc_count; i++) {
         allocation_count = i;
-        parser = XML_ParserCreate_MM("us-ascii", &memsuite, NULL);
+        parser = XML_ParserCreate_MM(XCS("us-ascii"), &memsuite, NULL);
         if (parser != NULL)
             break;
     }