cvs: php-src(PHP_5_2) /sapi/apache2handler php_functions.c

From: Date: Fri, 23 Feb 2007 21:38:26 +0000
Subject: cvs: php-src(PHP_5_2) /sapi/apache2handler php_functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-43233@lists.php.net to get a copy of this message
stas Fri Feb 23 21:38:26 2007 UTC Modified files: (Branch: PHP_5_2) /php-src/sapi/apache2handler php_functions.c Log: use snprintf http://cvs.php.net/viewvc.cgi/php-src/sapi/apache2handler/php_functions.c?r1=1.18.2.6.2.3&r2=1.18.2.6.2.4&diff_format=u Index: php-src/sapi/apache2handler/php_functions.c diff -u php-src/sapi/apache2handler/php_functions.c:1.18.2.6.2.3 php-src/sapi/apache2handler/php_functions.c:1.18.2.6.2.4 --- php-src/sapi/apache2handler/php_functions.c:1.18.2.6.2.3 Sun Jan 14 16:59:05 2007 +++ php-src/sapi/apache2handler/php_functions.c Fri Feb 23 21:38:25 2007 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_functions.c,v 1.18.2.6.2.3 2007/01/14 16:59:05 iliaa Exp $ */ +/* $Id: php_functions.c,v 1.18.2.6.2.4 2007/02/23 21:38:25 stas Exp $ */ #define ZEND_INCLUDE_FULL_WINDOWS_HEADERS @@ -410,11 +410,11 @@ php_info_print_table_row(2, "Server Administrator", serv->server_admin); } - sprintf(tmp, "%s:%u", serv->server_hostname, serv->port); + snprintf(tmp, sizeof(tmp), "%s:%u", serv->server_hostname, serv->port); php_info_print_table_row(2, "Hostname:Port", tmp); #if !defined(WIN32) && !defined(WINNT) && !defined(NETWARE) - sprintf(tmp, "%s(%d)/%d", unixd_config.user_name, unixd_config.user_id, unixd_config.group_id); + snprintf(tmp, sizeof(tmp), "%s(%d)/%d", unixd_config.user_name, unixd_config.user_id, unixd_config.group_id); php_info_print_table_row(2, "User/Group", tmp); #endif

« previous php.cvs (#43233) next »