sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit 98ec9d51141b60ed1b1a3cfe07132c60a05fd166
parent 2f50ad527869535106d946008fb1e09f25f3acae
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 25 Apr 2014 18:47:25 +0200

sfeed: fix numeric entity parsing

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
Msfeed.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sfeed.c b/sfeed.c @@ -171,8 +171,8 @@ entitytostr(const char *e, char *buffer, size_t bufsiz) { if(*e != '&' || bufsiz < 5) /* doesnt start with & */ return 0; - if(*(e+1) == '#') { - e++; + if(e[1] == '#') { + e += 2; /* skip &# */ if(*e == 'x') { e++; l = strtol(e, NULL, 16); /* hex */