diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2014-04-25 18:47:25 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2014-04-25 18:47:25 +0200 |
commit | 98ec9d51141b60ed1b1a3cfe07132c60a05fd166 (patch) | |
tree | f22f0c03ec662b88705c68cbbbef9e3ac5c6489d | |
parent | 2f50ad527869535106d946008fb1e09f25f3acae (diff) |
sfeed: fix numeric entity parsing
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
-rw-r--r-- | sfeed.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |