]> git.sur5r.net Git - openldap/commitdiff
rid list fix
authorKurt Zeilenga <kurt@openldap.org>
Mon, 30 Aug 2004 18:33:16 +0000 (18:33 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 30 Aug 2004 18:33:16 +0000 (18:33 +0000)
servers/slapd/slapadd.c

index a0db92e24d1af7678f636d436fd45f9fc30118e9..5f4acbc40032f2b6772c67aaa8294ba75bde1950 100644 (file)
@@ -558,10 +558,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 );