From: Rhodri James Date: Tue, 22 Aug 2017 13:47:20 +0000 (+0100) Subject: Fix rsqb_handler() to work correctly in UTF-16 builds X-Git-Tag: R_2_2_5~24^2~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e18b2b398da3b2a2252ab517da4022d9f6f00720;p=libexpat Fix rsqb_handler() to work correctly in UTF-16 builds --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 917ccc5c..6deb14e0 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -3649,7 +3649,7 @@ rsqb_handler(void *userData, const XML_Char *s, int len) { int *pfound = (int *)userData; - if (len == 1 && *s == ']') + if (len == 1 && *s == XCS(']')) *pfound = 1; }