summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-10-20 16:25:00 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-10-20 16:29:42 +0200
commitde58fb34c9dad0ce598eb53ee942628fd7c7b14a (patch)
treecd13819c2fbe007d7d47686f6fbf78774c801f00
parent7f3bdda29bf7123f1f2841c5483e30b5b22981ce (diff)
downloadphp-git-de58fb34c9dad0ce598eb53ee942628fd7c7b14a.tar.gz
Add char* cast to avoid compiler warnings
In libc-client 2007f `data` is declared as `unsigned char *`; there may be variants which declare it as `void *`, but in any case picky compilers may warn about a pointer type mismatch in the conditional (and error with `-W-error`), so we're adding a `char *` cast for good measure.
-rw-r--r--ext/imap/php_imap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index 084cb4ee28..7d0fca1e98 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -3937,7 +3937,7 @@ PHP_FUNCTION(imap_mail_compose)
efree(mystring);
mystring=tempstring;
} else if (bod) {
- spprintf(&tempstring, 0, "%s%s%s", mystring, bod->contents.text.data ? bod->contents.text.data : "", CRLF);
+ spprintf(&tempstring, 0, "%s%s%s", mystring, bod->contents.text.data ? (char *) bod->contents.text.data : "", CRLF);
efree(mystring);
mystring=tempstring;
} else {