diff options
| author | Antony Dovgal <tony2001@php.net> | 2006-12-28 12:02:59 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2006-12-28 12:02:59 +0000 |
| commit | 8b8c928063f3ffe300603a1b5ad050d788c4a26f (patch) | |
| tree | f1a4af2a7df13fcce43110f06813fcf6615ad413 | |
| parent | 87b7293e4b526312c01ec5237887d4320d521882 (diff) | |
| download | php-git-8b8c928063f3ffe300603a1b5ad050d788c4a26f.tar.gz | |
MFH
| -rw-r--r-- | main/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/main.c b/main/main.c index 67cd728856..d7c1da13d9 100644 --- a/main/main.c +++ b/main/main.c @@ -824,7 +824,7 @@ static void php_message_handler_for_zend(long message, void *data) 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 @@ static void php_message_handler_for_zend(long message, void *data) 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; |
