summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
61c6b37)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
return !!((strcmp(field, cond->value) == 0)
^ (cond->condition == MATCH_DIFFER));
} else {
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;
^ (cond->condition == MATCH_DIFFER));
}
break;
if (cond->case_sensitive) {
return strstr(field, cond->value);
} else {
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);
if (cond->case_sensitive) {
return strstr(cond->value, field);
} else {
if (cond->case_sensitive) {
return strstr(cond->value, field);
} else {
- /* XXX: GNU Sources */
- return strcasestr(cond->value, field);
+ return m_stristr(cond->value, field);