From: Stanislav Malyshev Date: Fri, 8 Sep 2000 12:07:21 +0000 (+0000) Subject: Fix syslog call X-Git-Tag: php-4.0.3RC1~246 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df5e0cb0a5570a4670efb0a3859b413c6ce310be;p=php Fix syslog call --- 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