From: Vsevolod Stakhov Date: Thu, 26 Sep 2019 08:58:33 +0000 (+0100) Subject: [Minor] Fix array size X-Git-Tag: 2.0~121 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f648223e11b724cb485fabd8d344fec3b3e382c5;p=rspamd.git [Minor] Fix array size --- 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 */