cvs: php-src(PHP_5_2) /sapi/isapi php5isapi.c

From: Date: Fri, 23 Feb 2007 22:05:46 +0000
Subject: cvs: php-src(PHP_5_2) /sapi/isapi php5isapi.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-43235@lists.php.net to get a copy of this message
stas Fri Feb 23 22:05:46 2007 UTC Modified files: (Branch: PHP_5_2) /php-src/sapi/isapi php5isapi.c Log: use strlcat http://cvs.php.net/viewvc.cgi/php-src/sapi/isapi/php5isapi.c?r1=1.8.2.2.2.1&r2=1.8.2.2.2.2&diff_format=u Index: php-src/sapi/isapi/php5isapi.c diff -u php-src/sapi/isapi/php5isapi.c:1.8.2.2.2.1 php-src/sapi/isapi/php5isapi.c:1.8.2.2.2.2 --- php-src/sapi/isapi/php5isapi.c:1.8.2.2.2.1 Mon Jan 1 09:36:12 2007 +++ php-src/sapi/isapi/php5isapi.c Fri Feb 23 22:05:46 2007 @@ -16,7 +16,7 @@ | Ben Mansell <ben@zeus.com> (Zeus Support) | +----------------------------------------------------------------------+ */ -/* $Id: php5isapi.c,v 1.8.2.2.2.1 2007/01/01 09:36:12 sebastian Exp $ */ +/* $Id: php5isapi.c,v 1.8.2.2.2.2 2007/02/23 22:05:46 stas Exp $ */ #include "php.h" #include <httpext.h> @@ -389,24 +389,24 @@ */ strcpy( static_cons_buf, "/C=" ); if( lpECB->GetServerVariable( lpECB->ConnID, "SSL_CLIENT_C", static_variable_buf, &variable_len ) && static_variable_buf[0] ) { - strcat( static_cons_buf, static_variable_buf ); + strlcat( static_cons_buf, static_variable_buf, ISAPI_SERVER_VAR_BUF_SIZE); } strcat( static_cons_buf, "/ST=" ); variable_len = ISAPI_SERVER_VAR_BUF_SIZE; if( lpECB->GetServerVariable( lpECB->ConnID, "SSL_CLIENT_ST", static_variable_buf, &variable_len ) && static_variable_buf[0] ) { - strcat( static_cons_buf, static_variable_buf ); + strlcat( static_cons_buf, static_variable_buf, ISAPI_SERVER_VAR_BUF_SIZE ); } php_register_variable( "SSL_CLIENT_DN", static_cons_buf, track_vars_array TSRMLS_CC ); strcpy( static_cons_buf, "/C=" ); variable_len = ISAPI_SERVER_VAR_BUF_SIZE; if( lpECB->GetServerVariable( lpECB->ConnID, "SSL_CLIENT_I_C", static_variable_buf, &variable_len ) && static_variable_buf[0] ) { - strcat( static_cons_buf, static_variable_buf ); + strlcat( static_cons_buf, static_variable_buf, ISAPI_SERVER_VAR_BUF_SIZE ); } strcat( static_cons_buf, "/ST=" ); variable_len = ISAPI_SERVER_VAR_BUF_SIZE; if( lpECB->GetServerVariable( lpECB->ConnID, "SSL_CLIENT_I_ST", static_variable_buf, &variable_len ) && static_variable_buf[0] ) { - strcat( static_cons_buf, static_variable_buf ); + strlcat( static_cons_buf, static_variable_buf, ISAPI_SERVER_VAR_BUF_SIZE ); } php_register_variable( "SSL_CLIENT_I_DN", static_cons_buf, track_vars_array TSRMLS_CC ); }

« previous php.cvs (#43235) next »