diff options
Diffstat (limited to 'lib/helper.c')
-rw-r--r-- | lib/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helper.c b/lib/helper.c index f279a50..d3ae01b 100644 --- a/lib/helper.c +++ b/lib/helper.c @@ -647,7 +647,7 @@ uint32_t str2val32(const char *str, const struct valstr *vs) int i; for (i = 0; vs[i].str; i++) { - if (strncasecmp(vs[i].str, str, __maxlen(str, vs[i].str)) == 0) + if (strcasecmp(vs[i].str, str) == 0) return vs[i].val; } |