From 7bee593572d1a24c584abf25826004284c87683e Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 12 Nov 2004 12:46:30 +0000 Subject: [PATCH] cleanup --- servers/slapd/extended.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/slapd/extended.c b/servers/slapd/extended.c index e77f7c6a4e..072b9f0205 100644 --- a/servers/slapd/extended.c +++ b/servers/slapd/extended.c @@ -416,10 +416,10 @@ whoami_extop ( bv = (struct berval *) ch_malloc( sizeof(struct berval) ); if( op->o_dn.bv_len ) { - bv->bv_len = op->o_dn.bv_len + sizeof("dn:")-1; + bv->bv_len = op->o_dn.bv_len + STRLENOF( "dn:" ); bv->bv_val = ch_malloc( bv->bv_len + 1 ); - AC_MEMCPY( bv->bv_val, "dn:", sizeof("dn:")-1 ); - AC_MEMCPY( &bv->bv_val[sizeof("dn:")-1], op->o_dn.bv_val, + AC_MEMCPY( bv->bv_val, "dn:", STRLENOF( "dn:" ) ); + AC_MEMCPY( &bv->bv_val[STRLENOF( "dn:" )], op->o_dn.bv_val, op->o_dn.bv_len ); bv->bv_val[bv->bv_len] = '\0'; -- 2.39.5