Gitweb:
https://git.exim.org/exim.git/commitdiff/66c3900a252ed2ddb578230ecb3d41d3e417e445
Commit: 66c3900a252ed2ddb578230ecb3d41d3e417e445
Parent: c314dfcd9e33e02f409d86d06045cb6053fe4140
Author: Jeremy Harris <jgh146exb@???>
AuthorDate: Sat May 15 16:32:57 2021 +0100
Committer: Jeremy Harris <jgh146exb@???>
CommitDate: Mon Jun 28 00:30:02 2021 +0100
avoid mofying config text
---
src/src/smtp_in.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c
index 1d7b222..78c86e7 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