improve comment: uppercase cdata -> CDATA

This commit is contained in:
Hiltjo Posthuma 2022-08-26 21:55:35 +02:00
parent 411f5e83c3
commit 60e402d0f2
2 changed files with 2 additions and 2 deletions

2
xml.c
View File

@ -292,7 +292,7 @@ xml_parse(XMLParser *x)
if ((c = GETNEXT()) == EOF)
return;
if (c == '!') { /* cdata and comments */
if (c == '!') { /* CDATA and comments */
for (tagdatalen = 0; (c = GETNEXT()) != EOF;) {
/* NOTE: sizeof(x->data) must be at least sizeof("[CDATA[") */
if (tagdatalen <= sizeof("[CDATA[") - 1)

2
xml.h
View File

@ -34,7 +34,7 @@ typedef struct xmlparser {
int isshorttag;
/* current attribute name */
char name[1024];
/* data buffer used for tag data, cdata and attribute data */
/* data buffer used for tag data, CDATA and attribute data */
char data[BUFSIZ];
} XMLParser;