cvs: php-src /ext/ldap ldap.c

From: Date: Tue, 01 Jun 2004 21:04:33 +0000
Subject: cvs: php-src /ext/ldap ldap.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-27543@lists.php.net to get a copy of this message
iliaa Tue Jun 1 17:04:33 2004 EDT Modified files: /php-src/ext/ldap ldap.c Log: No need to NULL terminate manually, snprintf() does it for us already. http://cvs.php.net/diff.php/php-src/ext/ldap/ldap.c?r1=1.152&r2=1.153&ty=u Index: php-src/ext/ldap/ldap.c diff -u php-src/ext/ldap/ldap.c:1.152 php-src/ext/ldap/ldap.c:1.153 --- php-src/ext/ldap/ldap.c:1.152 Wed May 12 06:15:48 2004 +++ php-src/ext/ldap/ldap.c Tue Jun 1 17:04:33 2004 @@ -22,7 +22,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: ldap.c,v 1.152 2004/05/12 10:15:48 helly Exp $ */ +/* $Id: ldap.c,v 1.153 2004/06/01 21:04:33 iliaa Exp $ */ #define IS_EXT_MODULE #ifdef HAVE_CONFIG_H @@ -303,19 +303,17 @@ php_info_print_table_start(); php_info_print_table_row(2, "LDAP Support", "enabled"); - php_info_print_table_row(2, "RCS Version", "$Id: ldap.c,v 1.152 2004/05/12 10:15:48 helly Exp $"); + php_info_print_table_row(2, "RCS Version", "$Id: ldap.c,v 1.153 2004/06/01 21:04:33 iliaa Exp $"); if (LDAPG(max_links) == -1) { snprintf(tmp, 31, "%ld/unlimited", LDAPG(num_links)); } else { snprintf(tmp, 31, "%ld/%ld", LDAPG(num_links), LDAPG(max_links)); } - tmp[31] = '\0'; php_info_print_table_row(2, "Total Links", tmp); #ifdef LDAP_API_VERSION snprintf(tmp, 31, "%d", LDAP_API_VERSION); - tmp[31] = '\0'; php_info_print_table_row(2, "API Version", tmp); #endif @@ -325,27 +323,22 @@ #ifdef LDAP_VENDOR_VERSION snprintf(tmp, 31, "%d", LDAP_VENDOR_VERSION); - tmp[31] = '\0'; php_info_print_table_row(2, "Vendor Version", tmp); #endif #if HAVE_NSLDAP SDKVersion = ldap_version(&ver); snprintf(tmp, 31, "%f", SDKVersion/100.0); - tmp[31] = '\0'; php_info_print_table_row(2, "SDK Version", tmp); snprintf(tmp, 31, "%f", ver.protocol_version/100.0); - tmp[31] = '\0'; php_info_print_table_row(2, "Highest LDAP Protocol Supported", tmp); snprintf(tmp, 31, "%f", ver.SSL_version/100.0); - tmp[31] = '\0'; php_info_print_table_row(2, "SSL Level Supported", tmp); if (ver.security_level != LDAP_SECURITY_NONE) { snprintf(tmp, 31, "%d", ver.security_level); - tmp[31] = '\0'; } else { strcpy(tmp, "SSL not enabled"); }

« previous php.cvs (#27543) next »