diff options
-rw-r--r-- | xml.c | 2 | ||||
-rw-r--r-- | xml.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -389,7 +389,7 @@ xml_parse(XMLParser *x) x->xmltagend(x, x->tag, x->taglen, 1); break; } else if (taglen < sizeof(x->tag) - 1) - x->tag[taglen++] = c; + x->tag[taglen++] = c; /* NOTE: tag name truncation */ } } } else { @@ -31,7 +31,7 @@ typedef struct xmlparser { /* current tag is in short form ? <tag /> */ int isshorttag; /* current attribute name */ - char name[256]; + char name[1024]; /* data buffer used for tag data, cdata and attribute data */ char data[BUFSIZ]; } XMLParser; |