diff options
author | Antony Dovgal <tony2001@php.net> | 2006-12-28 12:01:50 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-12-28 12:01:50 +0000 |
commit | d3a651a39e22675135cfb4308a522bef639e2271 (patch) | |
tree | 6e66fd86e08bd089d4cf71fb772939ab24c03696 | |
parent | 96d9d6f0f1939e96c5554e19d77b89c17d143650 (diff) | |
download | php-git-d3a651a39e22675135cfb4308a522bef639e2271.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 aca1568958..b7f89d2801 100644 --- a/main/main.c +++ b/main/main.c @@ -961,7 +961,7 @@ static void php_message_handler_for_zend(long message, void *data) case ZMSG_MEMORY_LEAK_REPEATED: #if ZEND_DEBUG if (EG(error_reporting) & E_WARNING) { - char memory_leak_buf[512]; + char memory_leak_buf[1024]; if (message==ZMSG_MEMORY_LEAK_DETECTED) { zend_leak_info *t = (zend_leak_info *) data; @@ -971,7 +971,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; |