From: Quentin Rameau Date: Sun, 4 Oct 2015 12:47:52 +0000 (+0200) Subject: fix input text matching X-Git-Url: https://git.armaanb.net/?p=dmenu.git;a=commitdiff_plain;h=09d0a36e0370f7ca9bdb171bf93c5ac3131c5a92 fix input text matching just compare the size of the input string --- diff --git a/dmenu.c b/dmenu.c index c9fb38b..4f22ffe 100644 --- a/dmenu.c +++ b/dmenu.c @@ -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]))