]> granicus.if.org Git - php/commitdiff
Avoid C4090 level 1 warning
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 8 Feb 2021 22:11:37 +0000 (23:11 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 8 Feb 2021 22:11:37 +0000 (23:11 +0100)
This breaks the build for PHP 8 by default.

win32/sendmail.c

index 0e38d7092f1d7692b718dd8ee68489d36195b9f2..78409b53a8b3bcda2fa0e6641f60941134294c07 100644 (file)
@@ -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) {