From 997800799757175041be80e3e722ef9be081aa72 Mon Sep 17 00:00:00 2001 From: Jong Hyuk Choi Date: Sat, 31 Jul 2004 00:03:58 +0000 Subject: [PATCH] slapadd -i fix --- servers/slapd/slapadd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/slapadd.c b/servers/slapd/slapadd.c index 4e17e7e936..8a93a5c212 100644 --- a/servers/slapd/slapadd.c +++ b/servers/slapd/slapadd.c @@ -559,10 +559,10 @@ done:; for ( i = 0; replica_id_list[i] > -1 ; i++ ) { slap_syncrepl_bv.bv_len = snprintf( slap_syncrepl_bv.bv_val, - slap_syncrepl_bvc.bv_len, + slap_syncrepl_bvc.bv_len+1, "syncrepl%d", replica_id_list[i] ); slap_syncrepl_cn_bv.bv_len = snprintf( slap_syncrepl_cn_bv.bv_val, - slap_syncrepl_cn_bvc.bv_len, + slap_syncrepl_cn_bvc.bv_len+1, "cn=syncrepl%d", replica_id_list[i] ); build_new_dn( &ctxcsn_ndn, &be->be_nsuffix[0], (struct berval *)&slap_syncrepl_cn_bv, NULL ); -- 2.39.5