diff options
author | John Hawthorn <john@hawthorn.email> | 2019-12-27 17:38:22 -0800 |
---|---|---|
committer | John Hawthorn <john@hawthorn.email> | 2019-12-27 17:38:22 -0800 |
commit | eb4cbd4e2f7480e100d0c16280035989f88d7911 (patch) | |
tree | 1bca39da79a3a97a815cbc9e85988f95e43adb71 /src/match.c | |
parent | 8ebc48041ab1c6e2b5a5532304ab6acdb3a2b63d (diff) |
Avoid VLA for match_bonus
Diffstat (limited to 'src/match.c')
-rw-r--r-- | src/match.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; /* |