Commit 453e71bf authored by Daniel Veillard's avatar Daniel Veillard
Browse files

killing the strncmp vs. memcmp controversy and #140593 Daniel

* parser.c: killing the strncmp vs. memcmp controversy and #140593
Daniel
parent f5850a14
Tue Apr 20 19:40:37 CEST 2004 Daniel Veillard <daniel@veillard.com>
* parser.c: killing the strncmp vs. memcmp controversy and #140593
Tue Apr 20 13:27:06 CEST 2004 Daniel Veillard <daniel@veillard.com> Tue Apr 20 13:27:06 CEST 2004 Daniel Veillard <daniel@veillard.com>
   
* include/libxml/SAX2.h: Kasimier Buchcik pointed out some * include/libxml/SAX2.h: Kasimier Buchcik pointed out some
......
...@@ -7580,7 +7580,7 @@ xmlParseEndTag2(xmlParserCtxtPtr ctxt, const xmlChar *prefix, ...@@ -7580,7 +7580,7 @@ xmlParseEndTag2(xmlParserCtxtPtr ctxt, const xmlChar *prefix,
} }
SKIP(2); SKIP(2);
if ((tlen > 0) && (memcmp(ctxt->input->cur, ctxt->name, tlen) == 0)) { if ((tlen > 0) && (strncmp(ctxt->input->cur, ctxt->name, tlen) == 0)) {
if (ctxt->input->cur[tlen] == '>') { if (ctxt->input->cur[tlen] == '>') {
ctxt->input->cur += tlen + 1; ctxt->input->cur += tlen + 1;
goto done; goto done;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment