summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xml.c b/xml.c
index bca7a83..c33ca0c 100644
--- a/xml.c
+++ b/xml.c
@@ -285,7 +285,7 @@ xml_namedentitytostr(const char *e, char *buf, size_t bufsiz)
if (*e != '&')
return 0;
- for (i = 0; sizeof(entities) / sizeof(*entities); i++) {
+ for (i = 0; i < sizeof(entities) / sizeof(*entities); i++) {
/* NOTE: compares max 6 chars */
if (!strncasecmp(e, entities[i].entity, 6)) {
buf[0] = entities[i].c;