cvs: php-src(PHP_5_2) /ext/imap php_imap.c
| From: | Ilia Alshanetsky | Date: | Sun, 11 Mar 2007 18:42:19 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/imap php_imap.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-43496@lists.php.net to get a copy of this message | ||
iliaa Sun Mar 11 18:42:19 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/imap php_imap.c
Log:
malloc() -> pemalloc()
http://cvs.php.net/viewvc.cgi/php-src/ext/imap/php_imap.c?r1=1.208.2.7.2.22&r2=1.208.2.7.2.23&diff_format=u
Index: php-src/ext/imap/php_imap.c
diff -u php-src/ext/imap/php_imap.c:1.208.2.7.2.22 php-src/ext/imap/php_imap.c:1.208.2.7.2.23
--- php-src/ext/imap/php_imap.c:1.208.2.7.2.22 Tue Feb 27 03:04:40 2007
+++ php-src/ext/imap/php_imap.c Sun Mar 11 18:42:19 2007
@@ -26,7 +26,7 @@
| PHP 4.0 updates: Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: php_imap.c,v 1.208.2.7.2.22 2007/02/27 03:04:40 iliaa Exp $ */
+/* $Id: php_imap.c,v 1.208.2.7.2.23 2007/03/11 18:42:19 iliaa Exp $ */
#define IMAP41
@@ -3895,7 +3895,7 @@
addresstmp = addresslist;
if ((len = _php_imap_address_size(addresstmp))) {
- tmpstr = (char *) malloc(len + 1);
+ tmpstr = (char *) pemalloc(len + 1, 1);
tmpstr[0] = '\0';
rfc822_write_address(tmpstr, addresstmp);
*fulladdress = tmpstr;
@@ -4316,7 +4316,7 @@
}
return NULL;
} else {
- char *buf = malloc(size + 1);
+ char *buf = pemalloc(size + 1, 1);
if (f(stream, size, buf)) {
buf[size] = '\0';