1
0

fix input text matching

just compare the size of the input string
This commit is contained in:
Quentin Rameau 2015-10-04 14:47:52 +02:00 committed by Hiltjo Posthuma
parent c168112042
commit a69a065b02

View File

@ -219,7 +219,7 @@ match(void)
len = tokc ? strlen(tokv[0]) : 0;
matches = lprefix = lsubstr = matchend = prefixend = substrend = NULL;
textsize = strlen(text) + 1;
textsize = strlen(text);
for (item = items; item && item->text; item++) {
for (i = 0; i < tokc; i++)
if (!fstrstr(item->text, tokv[i]))