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

index 917ccc5c8db91043ebd2b82b9fca28c6dd8c6167..6deb14e04c3cc79b1f69587a22bc1d70b6f65e7d 100644 (file)
@@ -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;
 }