commit 2cb31b8: [Minor] Fix bitset size
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Mar 11 14:49:09 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-03-11 14:41:13 +0000
URL: https://github.com/rspamd/rspamd/commit/2cb31b814247db35456322489ae3ecea7499dd8f (HEAD -> master)
[Minor] Fix bitset size
---
src/libserver/html.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libserver/html.c b/src/libserver/html.c
index 9b5282575..c84948986 100644
--- a/src/libserver/html.c
+++ b/src/libserver/html.c
@@ -2630,7 +2630,7 @@ rspamd_html_process_part_full (rspamd_mempool_t *pool,
g_assert (pool != NULL);
rspamd_html_library_init ();
- hc->tags_seen = rspamd_mempool_alloc0 (pool, NBYTES (G_N_ELEMENTS (tag_defs)));
+ hc->tags_seen = rspamd_mempool_alloc0 (pool, NBYTES (N_TAGS));
/* Set white background color by default */
hc->bgcolor.d.comp.alpha = 0;
More information about the Commits
mailing list