commit f648223: [Minor] Fix array size

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Sep 26 09:00:07 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-09-26 09:58:33 +0100
URL: https://github.com/rspamd/rspamd/commit/f648223e11b724cb485fabd8d344fec3b3e382c5 (HEAD -> master)

[Minor] Fix array size

---
 src/libstat/tokenizers/tokenizers.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libstat/tokenizers/tokenizers.c b/src/libstat/tokenizers/tokenizers.c
index 000f2033c..acd3c5739 100644
--- a/src/libstat/tokenizers/tokenizers.c
+++ b/src/libstat/tokenizers/tokenizers.c
@@ -39,7 +39,7 @@ typedef gboolean (*token_get_function) (rspamd_stat_token_t * buf, gchar const *
 		rspamd_stat_token_t * token,
 		GList **exceptions, gsize *rl, gboolean check_signature);
 
-const gchar t_delimiters[255] = {
+const gchar t_delimiters[256] = {
 	0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
 	1, 0, 0, 1, 0, 0, 0, 0, 0, 0,
 	0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -65,7 +65,7 @@ const gchar t_delimiters[255] = {
 	0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 	0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 	0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-	0, 0, 0, 0, 0
+	0, 0, 0, 0, 0, 0
 };
 
 /* Get next word from specified f_str_t buf */


More information about the Commits mailing list