Skip to content

Commit de58fb3

Browse files
committed
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.
1 parent 7f3bdda commit de58fb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/imap/php_imap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3937,7 +3937,7 @@ PHP_FUNCTION(imap_mail_compose)
39373937
efree(mystring);
39383938
mystring=tempstring;
39393939
} else if (bod) {
3940-
spprintf(&tempstring, 0, "%s%s%s", mystring, bod->contents.text.data ? bod->contents.text.data : "", CRLF);
3940+
spprintf(&tempstring, 0, "%s%s%s", mystring, bod->contents.text.data ? (char *) bod->contents.text.data : "", CRLF);
39413941
efree(mystring);
39423942
mystring=tempstring;
39433943
} else {

0 commit comments

Comments
 (0)