cvs: php4 /ext/standard syslog.c

From: Date: Fri, 08 Sep 2000 11:24:08 +0000
Subject: cvs: php4 /ext/standard syslog.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1629@lists.php.net to get a copy of this message
stas Fri Sep 8 04:24:08 2000 EDT Modified files: /php4/ext/standard syslog.c Log: Since we don't allow parameters for syslog, we shouln't pass the string as format Index: php4/ext/standard/syslog.c diff -u php4/ext/standard/syslog.c:1.22 php4/ext/standard/syslog.c:1.23 --- php4/ext/standard/syslog.c:1.22 Mon Jun 5 12:47:44 2000 +++ php4/ext/standard/syslog.c Fri Sep 8 04:24:08 2000 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: syslog.c,v 1.22 2000/06/05 19:47:44 andi Exp $ */ +/* $Id: syslog.c,v 1.23 2000/09/08 11:24:08 stas Exp $ */ #include "php.h" #include "php_ini.h" @@ -252,7 +252,7 @@ * 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; } /* }}} */

« previous php.cvs (#1629) next »