summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2021-05-15 16:32:57 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2021-06-28 00:30:02 +0100
commit66c3900a252ed2ddb578230ecb3d41d3e417e445 (patch)
treed01feb287d4e101adcab9e43d117e82b8d8e8ce0
parentc314dfcd9e33e02f409d86d06045cb6053fe4140 (diff)
downloadexim4-66c3900a252ed2ddb578230ecb3d41d3e417e445.tar.gz
avoid mofying config text
-rw-r--r--src/src/smtp_in.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c
index 1d7b22254..78c86e7c9 100644
--- a/src/src/smtp_in.c
+++ b/src/src/smtp_in.c
@@ -3015,7 +3015,7 @@ else
p = s + Ustrlen(s);
while (p > s && isspace(p[-1])) p--;
-*p = 0;
+s = string_copyn(s, p-s);
/* It seems that CC:Mail is braindead, and assumes that the greeting message
is all contained in a single IP packet. The original code wrote out the