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;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to