aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-22 12:48:58 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-22 12:48:58 +0100
commit7eaa2fde301566ca1078492ac9985b957eaa8f39 (patch)
tree2947c6846bdef88aaf0cc7d7eedfa0b408dfcd86
parentcb82b943ea22e420e7bb90a5eb906ad81a9f9fe7 (diff)
downloadrspamd-7eaa2fde301566ca1078492ac9985b957eaa8f39.tar.gz
rspamd-7eaa2fde301566ca1078492ac9985b957eaa8f39.zip
[Minor] Set body is not zero terminated in Milter
-rw-r--r--src/libserver/milter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/milter.c b/src/libserver/milter.c
index 04fe8b882..28e0df1c7 100644
--- a/src/libserver/milter.c
+++ b/src/libserver/milter.c
@@ -1226,7 +1226,7 @@ rspamd_milter_send_action (struct rspamd_milter_session *session,
msg_debug_milter ("want to change body; size = %uz",
len);
SET_COMMAND (cmd, len, reply, pos);
- memcpy (pos, body_str, len + 1);
+ memcpy (pos, body_str, len);
break;
case RSPAMD_MILTER_REPLYCODE:
case RSPAMD_MILTER_ADDRCPT: