From: Stanislav Malyshev Date: Fri, 8 Sep 2000 11:24:08 +0000 (+0000) Subject: Since we don't allow parameters for syslog, we shouln't pass the X-Git-Tag: php-4.0.3RC1~248 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85f42b7f7ad1311513fb7551ddd5d24b9a79ea57;p=php Since we don't allow parameters for syslog, we shouln't pass the string as format --- diff --git a/ext/standard/syslog.c b/ext/standard/syslog.c index 882c4e1259..1e7bfe15d5 100644 --- a/ext/standard/syslog.c +++ b/ext/standard/syslog.c @@ -252,7 +252,7 @@ PHP_FUNCTION(syslog) * this will cause problems. */ - php_syslog((*priority)->value.lval, (*message)->value.str.val); + php_syslog((*priority)->value.lval, "%.500s",(*message)->value.str.val); RETURN_TRUE; } /* }}} */