From 20a608d9dae4c758bf608e10fd2cdb9cc1559625 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Tue, 2 May 2017 12:31:00 +0200 Subject: [PATCH] Fixed bug #74510 win32/sendmail.c anchors CC header but not BCC --- win32/sendmail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/sendmail.c b/win32/sendmail.c index d460f22fda5..d83663a4752 100644 --- a/win32/sendmail.c +++ b/win32/sendmail.c @@ -535,7 +535,7 @@ static int SendText(char *RPath, char *Subject, char *mailTo, char *mailCc, char efree(tempMailTo); } else if (headers) { - if (pos1 = strstr(headers_lc, "bcc:")) { + if ((pos1 = strstr(headers_lc, "bcc:")) && (pos1 == headers_lc || *(pos1-1) == '\n')) { /* Real offset is memaddress from the original headers + difference of * string found in the lowercase headrs + 4 characters to jump over * the bcc: */