Fixed bug in like clause matching
This commit is contained in:
@ -762,7 +762,8 @@ extern char *strcasestr();
|
|||||||
char *portion = malloc(len + 1);
|
char *portion = malloc(len + 1);
|
||||||
int rval;
|
int rval;
|
||||||
strncpy(portion, fixed, len - trailing);
|
strncpy(portion, fixed, len - trailing);
|
||||||
rval = (strcasestr(portion, str) != NULL ? 0 : 1);
|
portion[len - trailing] = 0;
|
||||||
|
rval = (strcasestr(str, portion) != NULL ? 0 : 1);
|
||||||
free(portion);
|
free(portion);
|
||||||
return rval;
|
return rval;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user