1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

killing the strncmp vs. memcmp controversy and #140593 Daniel

* parser.c: killing the strncmp vs. memcmp controversy and #140593
Daniel
This commit is contained in:
Daniel Veillard
2004-04-20 17:44:46 +00:00
parent f5850a14bb
commit 453e71bf1e
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
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

View File

@@ -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;