cvs: php-src(PHP_4_4) /main main.c
| From: | Antony Dovgal | Date: | Thu, 28 Dec 2006 12:03:00 +0000 |
| Subject: | cvs: php-src(PHP_4_4) /main main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-42437@lists.php.net to get a copy of this message | ||
tony2001 Thu Dec 28 12:03:00 2006 UTC
Modified files: (Branch: PHP_4_4)
/php-src/main main.c
Log:
MFH
http://cvs.php.net/viewvc.cgi/php-src/main/main.c?r1=1.512.2.63.2.12&r2=1.512.2.63.2.13&diff_format=u
Index: php-src/main/main.c
diff -u php-src/main/main.c:1.512.2.63.2.12 php-src/main/main.c:1.512.2.63.2.13
--- php-src/main/main.c:1.512.2.63.2.12 Tue Dec 26 17:33:12 2006
+++ php-src/main/main.c Thu Dec 28 12:02:59 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: main.c,v 1.512.2.63.2.12 2006/12/26 17:33:12 iliaa Exp $ */
+/* $Id: main.c,v 1.512.2.63.2.13 2006/12/28 12:02:59 tony2001 Exp $ */
/* {{{ includes
*/
@@ -824,7 +824,7 @@
if ((EG(error_reporting)&E_WARNING) && PG(report_memleaks)) {
#if ZEND_DEBUG
- char memory_leak_buf[512];
+ char memory_leak_buf[1024];
if (message==ZMSG_MEMORY_LEAK_DETECTED) {
zend_mem_header *t = (zend_mem_header *) data;
@@ -835,7 +835,7 @@
char relay_buf[512];
snprintf(relay_buf, 512, "%s(%d) : Actual location (location was relayed)\n",
t->orig_filename, t->orig_lineno);
- strcat(memory_leak_buf, relay_buf);
+ strlcat(memory_leak_buf, relay_buf, sizeof(memory_leak_buf));
}
} else {
unsigned long leak_count = (unsigned long) data;