summaryrefslogtreecommitdiff
path: root/ext/standard/syslog.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2000-09-08 11:24:08 +0000
committerStanislav Malyshev <stas@php.net>2000-09-08 11:24:08 +0000
commit85f42b7f7ad1311513fb7551ddd5d24b9a79ea57 (patch)
treedb24e24deeb177c8f3bc4257271556ccb10e2cf8 /ext/standard/syslog.c
parent9b1aed8323cb44180c075c9f08ab298e62ca0a44 (diff)
downloadphp-git-85f42b7f7ad1311513fb7551ddd5d24b9a79ea57.tar.gz
Since we don't allow parameters for syslog, we shouln't pass the
string as format
Diffstat (limited to 'ext/standard/syslog.c')
-rw-r--r--ext/standard/syslog.c2
1 files changed, 1 insertions, 1 deletions
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;
}
/* }}} */