diff options
| author | Quentin Rameau <quinq@fifth.space> | 2015-10-04 14:47:52 +0200 |
|---|---|---|
| committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-10-04 15:04:59 +0200 |
| commit | 09d0a36e0370f7ca9bdb171bf93c5ac3131c5a92 (patch) | |
| tree | 263f1a822dc113cdefa0f5b589bde6f92437ad55 | |
| parent | acbf35a5e35b6f6a7dd3f8da49a6e5ec5ac075ce (diff) | |
fix input text matching
just compare the size of the input string
| -rw-r--r-- | dmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -219,7 +219,7 @@ match(void) | |||
| 219 | len = tokc ? strlen(tokv[0]) : 0; | 219 | len = tokc ? strlen(tokv[0]) : 0; |
| 220 | 220 | ||
| 221 | matches = lprefix = lsubstr = matchend = prefixend = substrend = NULL; | 221 | matches = lprefix = lsubstr = matchend = prefixend = substrend = NULL; |
| 222 | textsize = strlen(text) + 1; | 222 | textsize = strlen(text); |
| 223 | for (item = items; item && item->text; item++) { | 223 | for (item = items; item && item->text; item++) { |
| 224 | for (i = 0; i < tokc; i++) | 224 | for (i = 0; i < tokc; i++) |
| 225 | if (!fstrstr(item->text, tokv[i])) | 225 | if (!fstrstr(item->text, tokv[i])) |
