aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/rspamd_control.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-10-31 11:21:33 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-10-31 11:21:33 +0000
commit5e78c6ce33c4a42ceef7750eba0e4e225253a32d (patch)
treec83e2c3e22854e2fed79b783b86a900c231d786a /src/libserver/rspamd_control.h
parent530b8720f80ba89836e137b3096571e54226a8a0 (diff)
downloadrspamd-5e78c6ce33c4a42ceef7750eba0e4e225253a32d.tar.gz
rspamd-5e78c6ce33c4a42ceef7750eba0e4e225253a32d.zip
[Minor] Reserve some more bytes
Diffstat (limited to 'src/libserver/rspamd_control.h')
-rw-r--r--src/libserver/rspamd_control.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/rspamd_control.h b/src/libserver/rspamd_control.h
index dff48927d..c175fcc3f 100644
--- a/src/libserver/rspamd_control.h
+++ b/src/libserver/rspamd_control.h
@@ -53,7 +53,7 @@ enum rspamd_srv_type {
enum rspamd_log_pipe_type {
RSPAMD_LOG_PIPE_SYMBOLS = 0,
};
-#define CONTROL_PATHLEN MIN(PATH_MAX, PIPE_BUF - sizeof(int) * 2 - sizeof(gint64))
+#define CONTROL_PATHLEN MIN(PATH_MAX, PIPE_BUF - sizeof(int) * 2 - sizeof(gint64) * 2)
struct rspamd_control_command {
enum rspamd_control_type type;
union {
@@ -149,8 +149,8 @@ struct rspamd_srv_command {
guint pair_num;
} spair;
struct {
- gchar cache_dir[CONTROL_PATHLEN];
gboolean forced;
+ gchar cache_dir[CONTROL_PATHLEN];
} hs_loaded;
struct {
gchar tag[32];