aboutsummaryrefslogtreecommitdiffstats
path: root/src/hs_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hs_helper.c')
-rw-r--r--src/hs_helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hs_helper.c b/src/hs_helper.c
index e3aee6cbc..088aba8ae 100644
--- a/src/hs_helper.c
+++ b/src/hs_helper.c
@@ -210,7 +210,8 @@ rspamd_rs_compile (struct hs_helper_ctx *ctx, struct rspamd_worker *worker,
}
srv_cmd.type = RSPAMD_SRV_HYPERSCAN_LOADED;
- srv_cmd.cmd.hs_loaded.cache_dir = ctx->hs_dir;
+ rspamd_strlcpy (srv_cmd.cmd.hs_loaded.cache_dir, ctx->hs_dir,
+ sizeof (srv_cmd.cmd.hs_loaded.cache_dir));
srv_cmd.cmd.hs_loaded.forced = forced;
rspamd_srv_send_command (worker, ctx->ev_base, &srv_cmd, -1, NULL, NULL);