diff options
author | Stanislav Malyshev <stas@php.net> | 2007-02-23 21:38:25 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2007-02-23 21:38:25 +0000 |
commit | e8942068748573f46e4f6c34aadb21f1eca213e1 (patch) | |
tree | 1903475b06f069f98f6ba7f3df0adabc81dd0a3d /sapi/apache/php_apache.c | |
parent | 43aa661c5e9142e759d0d60234e25099eb3cff14 (diff) | |
download | php-git-e8942068748573f46e4f6c34aadb21f1eca213e1.tar.gz |
use snprintf
Diffstat (limited to 'sapi/apache/php_apache.c')
-rw-r--r-- | sapi/apache/php_apache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/apache/php_apache.c b/sapi/apache/php_apache.c index 03e8b4f559..98a85a5a07 100644 --- a/sapi/apache/php_apache.c +++ b/sapi/apache/php_apache.c @@ -212,10 +212,10 @@ PHP_MINFO_FUNCTION(apache) #endif sprintf(output_buf, "%d", MODULE_MAGIC_NUMBER); php_info_print_table_row(2, "Apache API Version", output_buf); - sprintf(output_buf, "%s:%u", serv->server_hostname, serv->port); + snprintf(output_buf, sizeof(output_buf), "%s:%u", serv->server_hostname, serv->port); php_info_print_table_row(2, "Hostname:Port", output_buf); #if !defined(WIN32) && !defined(WINNT) - sprintf(output_buf, "%s(%d)/%d", user_name, (int)user_id, (int)group_id); + snprintf(output_buf, sizeof(output_buf), "%s(%d)/%d", user_name, (int)user_id, (int)group_id); php_info_print_table_row(2, "User/Group", output_buf); sprintf(output_buf, "Per Child: %d - Keep Alive: %s - Max Per Connection: %d", max_requests_per_child, serv->keep_alive ? "on":"off", serv->keep_alive_max); php_info_print_table_row(2, "Max Requests", output_buf); |