iliaa Tue, 25 Aug 2009 12:47:28 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=287692
Log:
Fixed a compiler warning (variable clobbering)
Changed paths:
U php/php-src/branches/PHP_5_3/win32/sendmail.c
Modified: php/php-src/branches/PHP_5_3/win32/sendmail.c
===================================================================
--- php/php-src/branches/PHP_5_3/win32/sendmail.c 2009-08-25 12:46:34 UTC
(rev 287691)
+++ php/php-src/branches/PHP_5_3/win32/sendmail.c 2009-08-25 12:47:28 UTC
(rev 287692)
@@ -975,15 +975,15 @@
// Author/Date: garretts 08/18/2009
// History:
//********************************************************************/
-int FormatEmailAddress(char* Buffer, char* EmailAddress, char* FormatString )
{
+int FormatEmailAddress(char* Buf, char* EmailAddress, char* FormatString ) {
char *tmpAddress1, *tmpAddress2;
int result;
if( (tmpAddress1 = strchr(EmailAddress, '<')) && (tmpAddress2 =
strchr(tmpAddress1, '>')) ) {
*tmpAddress2 = 0; // terminate the string temporarily.
- result = snprintf(Buffer, MAIL_BUFFER_SIZE, FormatString ,
tmpAddress1+1);
+ result = snprintf(Buf, MAIL_BUFFER_SIZE, FormatString ,
tmpAddress1+1);
*tmpAddress2 = '>'; // put it back the way it was.
return result;
}
- return snprintf(Buffer, MAIL_BUFFER_SIZE , FormatString , EmailAddress
);
+ return snprintf(Buf, MAIL_BUFFER_SIZE , FormatString , EmailAddress );
} /* end FormatEmailAddress() */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php