summaryrefslogtreecommitdiff
path: root/win32/sendmail.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2009-08-25 12:47:28 +0000
committerIlia Alshanetsky <iliaa@php.net>2009-08-25 12:47:28 +0000
commitcc8cacd80e196c035c9a50e75e7c5dd8f2b34169 (patch)
treeb3f3f7cdc427ac517195b6ed30d17456e4b85f31 /win32/sendmail.c
parenteeb9429de5fed48806d9c6d4575eeddc2149cd6d (diff)
downloadphp-git-cc8cacd80e196c035c9a50e75e7c5dd8f2b34169.tar.gz
Fixed a compiler warning (variable clobbering)
Diffstat (limited to 'win32/sendmail.c')
-rw-r--r--win32/sendmail.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win32/sendmail.c b/win32/sendmail.c
index 6ff89e14f7..9fc7b02fda 100644
--- a/win32/sendmail.c
+++ b/win32/sendmail.c
@@ -975,15 +975,15 @@ static unsigned long GetAddr(LPSTR szHost)
// 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() */