Fix syslog call

This commit is contained in:
Stanislav Malyshev 2000-09-08 12:07:21 +00:00
parent 4f0842663f
commit df5e0cb0a5

View File

@ -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