- Cleanup some output functions

This commit is contained in:
Andi Gutmans 2000-09-30 16:13:48 +00:00
parent 499507ca0e
commit 2622eba31d
5 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@ static void incomplete_class_message(zend_property_reference *ref)
efree(class_name);
php_error(E_ERROR, buf);
php_error(E_ERROR, "%s", buf);
}
static void incomplete_class_call_func(INTERNAL_FUNCTION_PARAMETERS, zend_property_reference *property_reference)

View File

@ -51,7 +51,7 @@ static int _display_module_info(zend_module_entry *module, void *arg)
} else if (!show_info_func && !module->info_func) {
php_printf("<TR VALIGN=\"baseline\" BGCOLOR=\"" PHP_CONTENTS_COLOR "\">");
php_printf("<TD>");
php_printf(module->name);
php_printf("%s", module->name);
php_printf("</TD></TR>\n");
}
return 0;

View File

@ -287,7 +287,7 @@ void php_log_err(char *log_message)
time(&error_time);
strftime(error_time_str, 128, "%d-%b-%Y %H:%M:%S", php_localtime_r(&error_time, &tmbuf));
fprintf(log_file, "[%s] ", error_time_str);
fprintf(log_file, log_message);
fprintf(log_file, "%s", log_message);
fprintf(log_file, "\n");
fclose(log_file);
return;

View File

@ -278,7 +278,7 @@ static void php_apache_log_message(char *message)
log_error(message, ((request_rec *) SG(server_context))->server);
#endif
} else {
fprintf(stderr, message);
fprintf(stderr, "%s", message);
fprintf(stderr, "\n");
}
}

View File

@ -183,7 +183,7 @@ static void sapi_cgi_register_variables(zval *track_vars_array ELS_DC SLS_DC PLS
static void sapi_cgi_log_message(char *message)
{
if (php_header()) {
fprintf(stderr, message);
fprintf(stderr, "%s", message);
fprintf(stderr, "\n");
}
}