summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfeed.c4
1 files 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 */