if ( options != NULL )
i = options - name;
else
- i = strlen(name);
+ i = bv->bv_len - (name - bv->bv_val);
if( i == sizeof("binary")-1 && strncasecmp( name, "binary", i) == 0 ) {
if( slap_ad_is_binary( &desc ) ) {
assert( e->e_id != NOID );
DBTzero( &key );
- key.size = strlen( e->e_ndn ) + 2;
+ key.size = e->e_nname.bv_len + 2;
buf = ch_malloc( key.size );
key.data = buf;
buf[0] = DN_BASE_PREFIX;
e->e_ndn, e->e_id, 0 );
DBTzero( &key );
- key.size = strlen( e->e_ndn ) + 2;
+ key.size = e->e_nname.bv_len + 2;
buf = ch_malloc( key.size );
key.data = buf;
key.flags = DB_DBT_USERMEM;