From eb4cbd4e2f7480e100d0c16280035989f88d7911 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Fri, 27 Dec 2019 17:38:22 -0800 Subject: Avoid VLA for match_bonus --- src/match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/match.c b/src/match.c index 1081be3..d784a0b 100644 --- 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]; /* -- cgit v1.2.3