@@ -177,7 +177,7 @@ static zend_string *php_win32_mail_trim_header(char *header)
177
177
// See SendText() for additional args!
178
178
//********************************************************************/
179
179
PHPAPI int TSendMail (char * host , int * error , char * * error_message ,
180
- char * headers , char * Subject , char * mailTo , char * data ,
180
+ char * headers , const char * Subject , const char * mailTo , const char * data ,
181
181
char * mailCc , char * mailBcc , char * mailRPath )
182
182
{
183
183
int ret ;
@@ -352,7 +352,7 @@ PHPAPI char *GetSMErrorText(int index)
352
352
// Author/Date: jcar 20/9/96
353
353
// History:
354
354
//*******************************************************************/
355
- static int SendText (char * RPath , char * Subject , char * mailTo , char * mailCc , char * mailBcc , char * data ,
355
+ static int SendText (char * RPath , const char * Subject , const char * mailTo , char * mailCc , char * mailBcc , const char * data ,
356
356
char * headers , char * headers_lc , char * * error_message )
357
357
{
358
358
int res ;
@@ -633,7 +633,7 @@ static int SendText(char *RPath, char *Subject, char *mailTo, char *mailCc, char
633
633
return (SUCCESS );
634
634
}
635
635
636
- static int addToHeader (char * * header_buffer , const char * specifier , char * string )
636
+ static int addToHeader (char * * header_buffer , const char * specifier , const char * string )
637
637
{
638
638
* header_buffer = erealloc (* header_buffer , strlen (* header_buffer ) + strlen (specifier ) + strlen (string ) + 1 );
639
639
sprintf (* header_buffer + strlen (* header_buffer ), specifier , string );
@@ -651,7 +651,7 @@ static int addToHeader(char **header_buffer, const char *specifier, char *string
651
651
// Author/Date: jcar 20/9/96
652
652
// History:
653
653
//********************************************************************/
654
- static int PostHeader (char * RPath , char * Subject , char * mailTo , char * xheaders )
654
+ static int PostHeader (char * RPath , const char * Subject , const char * mailTo , char * xheaders )
655
655
{
656
656
/* Print message header according to RFC 822 */
657
657
/* Return-path, Received, Date, From, Subject, Sender, To, cc */
0 commit comments