Fix up selective_aborting_default_handler() for builds
@@ -5122,11 +5122,11 @@ selective_aborting_default_handler(void *userData,
const XML_Char *s,
int len)
{
- const char *match = (const char *)userData;
+ const XML_Char *match = (const XML_Char *)userData;
if (match == NULL ||
- (strlen(match) == (unsigned)len &&
- !strncmp(match, s, len))) {
+ (xcstrlen(match) == (unsigned)len &&
+ !xcstrncmp(match, s, len))) {
XML_StopParser(parser, resumable);
XML_SetDefaultHandler(parser, NULL);
}
@@ -5135,7 +5135,7 @@ selective_aborting_default_handler(void *userData,
START_TEST(test_abort_epilog)
{
const char *text = "<doc></doc>\n\r\n";
- char match[] = "\r";
+ XML_Char match[] = XCS("\r");
XML_SetDefaultHandler(parser, selective_aborting_default_handler);
XML_SetUserData(parser, match);
@@ -5152,7 +5152,7 @@ END_TEST
START_TEST(test_abort_epilog_2)
{
const char *text = "<doc></doc>\n";
- char match[] = "\n";
+ XML_Char match[] = XCS("\n");
XML_SetDefaultHandler(parser, selective_aborting_default_handler);
XML_SetUserData(parser, match);
@@ -5165,7 +5165,7 @@ END_TEST
START_TEST(test_suspend_epilog)
{
const char *text = "<doc></doc>\n";
- char match[] = "\n";
+ XML_Char match[] = XCS("\n");
XML_SetDefaultHandler(parser, selective_aborting_default_handler);
XML_SetUserData(parser, match);
