summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-08-06 20:41:46 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-08-06 20:41:46 +0200
commitc49745685c378babf3c85b8a81675adc3d44af19 (patch)
tree85a293287a345c3675fdb02d65ec1e54a116903b
parent19430fb45636614d96a08342cd7d83774e888c2e (diff)
sfeed: proper sort order for comparing tag
-rw-r--r--sfeed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeed.c b/sfeed.c
index 1117ebe..fe50470 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -145,7 +145,7 @@ gettag(enum FeedType feedtype, const char *name, size_t namelen)
}
/* search */
for (i = 0; tags[i].name; i++) {
- if (!(n = strncasecmp(tags[i].name, name, tags[i].len)))
+ if (!(n = strcasecmp(tags[i].name, name)))
return tags[i].id; /* found */
/* optimization: it's sorted so nothing after it matches. */
if (n > 0)