From 879fab5049b9697b2e68f23e989c9aec7544cab8 Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 22 Aug 2017 18:18:22 +0100 Subject: [PATCH] Fix triplet checker functions to use XML_Char correctly --- expat/tests/runtests.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 2a5c4549..cf46fcc2 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -7099,13 +7099,13 @@ static void XMLCALL triplet_start_checker(void *userData, const XML_Char *name, const XML_Char **atts) { - char **elemstr = (char **)userData; + XML_Char **elemstr = (XML_Char **)userData; char buffer[1024]; - if (strcmp(elemstr[0], name) != 0) { + if (xcstrcmp(elemstr[0], name) != 0) { sprintf(buffer, "unexpected start string: '%" XML_FMT_STR "'", name); fail(buffer); } - if (strcmp(elemstr[1], atts[0]) != 0) { + if (xcstrcmp(elemstr[1], atts[0]) != 0) { sprintf(buffer, "unexpected attribute string: '%" XML_FMT_STR "'", atts[0]); fail(buffer); @@ -7120,8 +7120,8 @@ triplet_start_checker(void *userData, const XML_Char *name, static void XMLCALL triplet_end_checker(void *userData, const XML_Char *name) { - char **elemstr = (char **)userData; - if (strcmp(elemstr[0], name) != 0) { + XML_Char **elemstr = (XML_Char **)userData; + if (xcstrcmp(elemstr[0], name) != 0) { char buffer[1024]; sprintf(buffer, "unexpected end string: '%" XML_FMT_STR "'", name); fail(buffer);