From 0a4281c4599bc46a321f34fc7c5e6695c713c56e Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 31 Jul 2015 22:38:04 +0200 Subject: xml: fix xml_namedentitytostr loop --- xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xml.c') 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; -- cgit v1.2.3