From 6b6cdc8dde7c88ffe7cd7e00a2b4b0043a3ce9ec Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Fri, 26 Feb 2010 18:01:03 +0000 Subject: [PATCH] Fix for bug #23229 (syslog function truncates messages): remove the hard-coded 500 character error message limit imposed when using error_log=syslog. --- main/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/main.c b/main/main.c index 92e3ab4db8..1966df4a46 100644 --- a/main/main.c +++ b/main/main.c @@ -655,7 +655,7 @@ PHPAPI void php_log_err(char *log_message TSRMLS_DC) if (PG(error_log) != NULL) { #ifdef HAVE_SYSLOG_H if (!strcmp(PG(error_log), "syslog")) { - php_syslog(LOG_NOTICE, "%.500s", log_message); + php_syslog(LOG_NOTICE, "%s", log_message); PG(in_error_log) = 0; return; } -- 2.40.0