summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-20 23:55:17 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-20 23:55:17 +0100
commitc29dd0f5cfd976cea6a38e4f036fd684d54e6212 (patch)
tree4302706b7b99798e9bd84abc794481c26010550d /src/modules
parent850fe29f8d63eb19d799851b16ce0820c9cad1f2 (diff)
everything- ensure we dont skip over past end of string for fuzzy match
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/everything/evry_util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/everything/evry_util.c b/src/modules/everything/evry_util.c
index 057b4ff..7817c7f 100644
--- a/src/modules/everything/evry_util.c
+++ b/src/modules/everything/evry_util.c
@@ -139,7 +139,10 @@ evry_fuzzy_match(const char *str, const char *match)
139 ii = 0; 139 ii = 0;
140 /* go to next word */ 140 /* go to next word */
141 for (; (*p != 0) && ((isspace(*p) || (ip && ispunct(*p)))); p += ii) 141 for (; (*p != 0) && ((isspace(*p) || (ip && ispunct(*p)))); p += ii)
142 if (!_evry_utf8_next(p, &ii)) break; 142 {
143 ii = 0;
144 if (!_evry_utf8_next(p, &ii)) break;
145 }
143 cnt++; 146 cnt++;
144 next = p; 147 next = p;
145 m_cnt = 0; 148 m_cnt = 0;