fmk Sat Dec 7 01:05:06 2002 EDT Modified files: /php4/ext/imap php_imap.c Log: fixing code style Index: php4/ext/imap/php_imap.c diff -u php4/ext/imap/php_imap.c:1.147 php4/ext/imap/php_imap.c:1.148 --- php4/ext/imap/php_imap.c:1.147 Fri Dec 6 17:52:31 2002 +++ php4/ext/imap/php_imap.c Sat Dec 7 01:05:06 2002 @@ -26,7 +26,7 @@ | PHP 4.0 updates: Zeev Suraski <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: php_imap.c,v 1.147 2002/12/06 22:52:31 fmk Exp $ */ +/* $Id: php_imap.c,v 1.148 2002/12/07 06:05:06 fmk Exp $ */ #define IMAP41 @@ -3147,12 +3147,15 @@ char *bufferTo = NULL, *bufferCc = NULL, *bufferBcc = NULL, *bufferHeader = NULL; int offset, bufferLen = 0;; - if (headers) + if (headers) { bufferLen += strlen(headers); - if (to) + } + if (to) { bufferLen += strlen(to) + 6; - if (cc) + } + if (cc) { bufferLen += strlen(cc) + 6; + } bufferHeader = (char *)emalloc(bufferLen); memset(bufferHeader, 0, bufferLen); @@ -3222,8 +3225,9 @@ } } - if (headers && *headers) + if (headers && *headers) { strcat(bufferHeader, headers); + } if (TSendMail(INI_STR("SMTP"), &tsm_err, &tsm_errmsg, bufferHeader, subject, bufferTo, message, bufferCc, bufferBcc, rpath) != SUCCESS) { if (tsm_errmsg) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php