diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c
index 7d912ae5..bb033ac9 100644
--- a/expat/tests/runtests.c
+++ b/expat/tests/runtests.c
@@ -8742,7 +8742,7 @@ START_TEST(test_alloc_dtd_default_handling)
"\n"
"]>\n"
"";
- const char *expected = "\n\n\n\n\n\n\n\n\ntext in doc";
+ const XML_Char *expected = XCS("\n\n\n\n\n\n\n\n\ntext in doc");
CharData storage;
int i;
const int max_alloc_count = 25;