diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-06 20:41:46 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-06 20:41:46 +0200 |
commit | c49745685c378babf3c85b8a81675adc3d44af19 (patch) | |
tree | 85a293287a345c3675fdb02d65ec1e54a116903b | |
parent | 19430fb45636614d96a08342cd7d83774e888c2e (diff) |
sfeed: proper sort order for comparing tag
-rw-r--r-- | sfeed.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |