commit | 453e71bf1e3fa59b31f574d7748de02e1ba7546d | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@src.gnome.org> | Tue Apr 20 17:44:46 2004 +0000 |
committer | Daniel Veillard <veillard@src.gnome.org> | Tue Apr 20 17:44:46 2004 +0000 |
tree | 39d79c97f8f2df0a1a93462567eb9c7fe2290ea7 | |
parent | f5850a14bb1e104365aec8776cdd4f54177429e7 [diff] [blame] |
killing the strncmp vs. memcmp controversy and #140593 Daniel * parser.c: killing the strncmp vs. memcmp controversy and #140593 Daniel
diff --git a/parser.c b/parser.c index 7662929..0fbf719 100644 --- a/parser.c +++ b/parser.c
@@ -7580,7 +7580,7 @@ } 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] == '>') { ctxt->input->cur += tlen + 1; goto done;