From: Christoph M. Becker Date: Mon, 8 Feb 2021 22:11:37 +0000 (+0100) Subject: Avoid C4090 level 1 warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f508003a949fa7d046c06ab8c84d67961a08c20;p=php Avoid C4090 level 1 warning This breaks the build for PHP 8 by default. --- diff --git a/win32/sendmail.c b/win32/sendmail.c index 0e38d7092f..78409b53a8 100644 --- a/win32/sendmail.c +++ b/win32/sendmail.c @@ -526,7 +526,7 @@ static int SendText(char *RPath, char *Subject, char *mailTo, char *mailCc, char header we know it was the last thing. */ pos2 = pos1; } else { - char *pos3 = pos2; + const char *pos3 = pos2; while (pos2[2] == ' ' || pos2[2] == '\t') { pos3 = strstr(pos2 + 2, "\r\n"); if (pos3 != NULL) {