fzy
terminal fuzzy finder picker
git clone https://9o.is/git/fzy.git
commit ed2a78124297d138491e8a9a8fa396cad968b761 parent 9faa68973ad784c9f3b6327160eea05fe9be1e78 Author: John Hawthorn <john@hawthorn.email> Date: Fri, 27 Dec 2019 17:38:22 -0800 Avoid VLA for match_bonus Diffstat:
| M | src/match.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/match.c b/src/match.c @@ -105,7 +105,7 @@ score_t match_positions(const char *needle, const char *haystack, size_t *positi for (int i = 0; i < m; i++) lower_haystack[i] = tolower(haystack[i]); - score_t match_bonus[m]; + score_t match_bonus[MATCH_MAX_LEN]; score_t D[n][m], M[n][m]; /*