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:
@@ -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
|
||||||
|
2
parser.c
2
parser.c
@@ -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;
|
||||||
|
Reference in New Issue
Block a user