From 98ec9d51141b60ed1b1a3cfe07132c60a05fd166 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 25 Apr 2014 18:47:25 +0200 Subject: sfeed: fix numeric entity parsing Signed-off-by: Hiltjo Posthuma --- sfeed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sfeed.c b/sfeed.c index 9effd14..7166b2f 100644 --- 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 */ -- cgit v1.2.3