From df5e0cb0a5570a4670efb0a3859b413c6ce310be Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Fri, 8 Sep 2000 12:07:21 +0000 Subject: [PATCH] Fix syslog call --- main/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/main.c b/main/main.c index df40b5c4f8..50dffa369b 100644 --- a/main/main.c +++ b/main/main.c @@ -275,7 +275,7 @@ void php_log_err(char *log_message) if (PG(error_log) != NULL) { #ifdef HAVE_SYSLOG_H if (!strcmp(PG(error_log), "syslog")) { - php_syslog(LOG_NOTICE, log_message); + php_syslog(LOG_NOTICE, "%.500s", log_message); return; } #endif -- 2.40.0