diff options
-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]; /* |