@@ -293,12 +293,10 @@ PHP_MINFO_FUNCTION(ldap)
293
293
} else {
294
294
snprintf (tmp , 31 , "%ld/%ld" , LDAPG (num_links ), LDAPG (max_links ));
295
295
}
296
- tmp [31 ] = '\0' ;
297
296
php_info_print_table_row (2 , "Total Links" , tmp );
298
297
299
298
#ifdef LDAP_API_VERSION
300
299
snprintf (tmp , 31 , "%d" , LDAP_API_VERSION );
301
- tmp [31 ] = '\0' ;
302
300
php_info_print_table_row (2 , "API Version" , tmp );
303
301
#endif
304
302
@@ -308,27 +306,22 @@ PHP_MINFO_FUNCTION(ldap)
308
306
309
307
#ifdef LDAP_VENDOR_VERSION
310
308
snprintf (tmp , 31 , "%d" , LDAP_VENDOR_VERSION );
311
- tmp [31 ] = '\0' ;
312
309
php_info_print_table_row (2 , "Vendor Version" , tmp );
313
310
#endif
314
311
315
312
#if HAVE_NSLDAP
316
313
SDKVersion = ldap_version ( & ver );
317
314
snprintf (tmp , 31 , "%f" , SDKVersion /100.0 );
318
- tmp [31 ] = '\0' ;
319
315
php_info_print_table_row (2 , "SDK Version" , tmp );
320
316
321
317
snprintf (tmp , 31 , "%f" , ver .protocol_version /100.0 );
322
- tmp [31 ] = '\0' ;
323
318
php_info_print_table_row (2 , "Highest LDAP Protocol Supported" , tmp );
324
319
325
320
snprintf (tmp , 31 , "%f" , ver .SSL_version /100.0 );
326
- tmp [31 ] = '\0' ;
327
321
php_info_print_table_row (2 , "SSL Level Supported" , tmp );
328
322
329
323
if ( ver .security_level != LDAP_SECURITY_NONE ) {
330
324
snprintf (tmp , 31 , "%d" , ver .security_level );
331
- tmp [31 ] = '\0' ;
332
325
} else {
333
326
strcpy (tmp , "SSL not enabled" );
334
327
}
0 commit comments