From: Pierangelo Masarati Date: Sat, 9 Apr 2005 16:50:07 +0000 (+0000) Subject: cleanup X-Git-Tag: OPENLDAP_AC_BP~941 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=59c40035fd9438821ec344aa8502b344f5a978ff;p=openldap cleanup --- diff --git a/servers/slapd/back-dnssrv/referral.c b/servers/slapd/back-dnssrv/referral.c index 8bd07fcbfc..7a03d3c6b7 100644 --- a/servers/slapd/back-dnssrv/referral.c +++ b/servers/slapd/back-dnssrv/referral.c @@ -95,11 +95,11 @@ dnssrv_back_referrals( for( i=0; hosts[i] != NULL; i++) { struct berval url; - url.bv_len = sizeof("ldap://")-1 + strlen(hosts[i]); + url.bv_len = STRLENOF( "ldap://" ) + strlen( hosts[i] ); url.bv_val = ch_malloc( url.bv_len + 1 ); strcpy( url.bv_val, "ldap://" ); - strcpy( &url.bv_val[sizeof("ldap://")-1], hosts[i] ); + strcpy( &url.bv_val[STRLENOF( "ldap://" )], hosts[i] ); if ( ber_bvarray_add( &urls, &url ) < 0 ) { free( url.bv_val );