cvs: php-src(PHP_5_2) /sapi/apache_hooks php_apache.c

From: Date: Fri, 23 Feb 2007 21:45:00 +0000
Subject: cvs: php-src(PHP_5_2) /sapi/apache_hooks php_apache.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-43234@lists.php.net to get a copy of this message
stas Fri Feb 23 21:45:00 2007 UTC Modified files: (Branch: PHP_5_2) /php-src/sapi/apache_hooks php_apache.c Log: use snprintf http://cvs.php.net/viewvc.cgi/php-src/sapi/apache_hooks/php_apache.c?r1=1.19.2.3.2.3&r2=1.19.2.3.2.4&diff_format=u Index: php-src/sapi/apache_hooks/php_apache.c diff -u php-src/sapi/apache_hooks/php_apache.c:1.19.2.3.2.3 php-src/sapi/apache_hooks/php_apache.c:1.19.2.3.2.4 --- php-src/sapi/apache_hooks/php_apache.c:1.19.2.3.2.3 Mon Jan 1 09:36:12 2007 +++ php-src/sapi/apache_hooks/php_apache.c Fri Feb 23 21:45:00 2007 @@ -17,7 +17,7 @@ | David Sklar <sklar@student.net> | +----------------------------------------------------------------------+ */ -/* $Id: php_apache.c,v 1.19.2.3.2.3 2007/01/01 09:36:12 sebastian Exp $ */ +/* $Id: php_apache.c,v 1.19.2.3.2.4 2007/02/23 21:45:00 stas Exp $ */ #include "php_apache_http.h" @@ -1614,10 +1614,10 @@ #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);

« previous php.cvs (#43234) next »