aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dmenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dmenu.c b/dmenu.c
index 1cfefcd..d605ab4 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -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]))