From: Jong Hyuk Choi Date: Tue, 6 Apr 2004 17:58:03 +0000 (+0000) Subject: Fix for ITS#3055 X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~120 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b844e7fe4247ffae0094502c1a1cc4c59f90b496;p=openldap Fix for ITS#3055 --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 951841b9e8..88da2c36d2 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -1622,7 +1622,7 @@ syncrepl_updateCookie( ber_dupbv( &cnbva[0], (struct berval *) &slap_syncrepl_bvc ); assert( si->si_rid < 1000 ); cnbva[0].bv_len = snprintf( cnbva[0].bv_val, - slap_syncrepl_bvc.bv_len, + slap_syncrepl_bvc.bv_len + 1, "syncrepl%ld", si->si_rid ); mod = (Modifications *) ch_calloc( 1, sizeof( Modifications )); mod->sml_op = LDAP_MOD_REPLACE; @@ -1675,7 +1675,7 @@ syncrepl_updateCookie( slap_syncrepl_cn_bv.bv_val = syncrepl_cbuf; assert( si->si_rid < 1000 ); 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%ld", si->si_rid ); build_new_dn( &slap_syncrepl_dn_bv, pdn, &slap_syncrepl_cn_bv,