diff options
-rw-r--r-- | main/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |