summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xml.c b/xml.c
index 1524d1f..35b7961 100644
--- a/xml.c
+++ b/xml.c
@@ -333,6 +333,8 @@ xml_parse(XMLParser *x)
else if (c == '>' || ISSPACE(c)) {
x->tag[x->taglen] = '\0';
if (isend) { /* end tag, starts with </ */
+ while (c != '>' && c != EOF) /* skip until > */
+ c = GETNEXT();
if (x->xmltagend)
x->xmltagend(x, x->tag, x->taglen, x->isshorttag);
x->tag[0] = '\0';