return !!((strcmp(field, cond->value) == 0)
^ (cond->condition == MATCH_DIFFER));
} else {
- return !!((strcasecmp(field, cond->value) == 0)
+ return !!((ascii_strcasecmp(field, cond->value) == 0)
^ (cond->condition == MATCH_DIFFER));
}
break;
if (cond->case_sensitive) {
return strstr(field, cond->value);
} else {
- /* XXX: GNU Sources */
- return strcasestr(field, cond->value);
+ return m_stristrn(field, cond->value, cond->value_len);
}
break;
if (cond->case_sensitive) {
return strstr(cond->value, field);
} else {
- /* XXX: GNU Sources */
- return strcasestr(cond->value, field);
+ return m_stristr(cond->value, field);
}
break;