[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[xml] strchr in xmlschemas.c



Dear All,

My C implementation defines strchr to have 2 arguments, the 1st being
a char* .

As xmlChar is an unsigned char and not a char, my C compiler faults the
use of strchr at line 1495 in xmlschemas.c in libxml2-2.6.8

The attached patch calls xmlStrchr in it's place.

Yours,

Phil L.
-- 
http://www.philipnet.com | http://director.sourceforge.net
Index: xmlschemas.c
===================================================================
RCS file: /cvs/gnome/libxml2/xmlschemas.c,v
retrieving revision 1.54
diff -u -r1.54 xmlschemas.c
--- xmlschemas.c	22 Mar 2004 15:22:26 -0000	1.54
+++ xmlschemas.c	4 Apr 2004 16:35:01 -0000
@@ -1492,7 +1492,7 @@
     if (val == NULL)
         return (NULL);
 
-    if (!strchr(val, ':')) {
+    if (!xmlStrchr(val, ':')) {
 	ns = xmlSearchNs(node->doc, node, 0);
 	if (ns) {
 	    *namespace = xmlDictLookup(ctxt->dict, ns->href, -1);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]