sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 0a4281c4599bc46a321f34fc7c5e6695c713c56e
parent 4c678a04defbf750d9b902c0477620401f74a86b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 31 Jul 2015 22:38:04 +0200

xml: fix xml_namedentitytostr loop

Diffstat:
Mxml.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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;