diff options
-rw-r--r-- | dmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -228,7 +228,7 @@ match(void) | |||
228 | len = tokc ? strlen(tokv[0]) : 0; | 228 | len = tokc ? strlen(tokv[0]) : 0; |
229 | 229 | ||
230 | matches = lprefix = lsubstr = matchend = prefixend = substrend = NULL; | 230 | matches = lprefix = lsubstr = matchend = prefixend = substrend = NULL; |
231 | textsize = strlen(text); | 231 | textsize = strlen(text) + 1; |
232 | for (item = items; item && item->text; item++) { | 232 | for (item = items; item && item->text; item++) { |
233 | for (i = 0; i < tokc; i++) | 233 | for (i = 0; i < tokc; i++) |
234 | if (!fstrstr(item->text, tokv[i])) | 234 | if (!fstrstr(item->text, tokv[i])) |