return false; /* tail is longer than string. */
if (!fold_case)
- return strcmp (string + pos, tail);
+ return !strcmp (string + pos, tail);
else
- return strcasecmp (string + pos, tail);
+ return !strcasecmp (string + pos, tail);
}
/* Checks whether string S matches each element of ACCEPTS. A list
test_dir_matches_p()
{
static struct {
- const char *dirlist[3];
+ char *dirlist[3];
const char *dir;
bool result;
} test_array[] = {