diff --git a/main/main.c b/main/main.c index df40b5c4f89..50dffa369b9 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