From: Pierangelo Masarati Date: Sat, 24 Feb 2007 18:29:55 +0000 (+0000) Subject: re-fix previus commit the other way 'round (rids are < 1000) X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~645 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5ed0fc37494b835aeeb39bd55ee6d71cedad8143;p=openldap re-fix previus commit the other way 'round (rids are < 1000) --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 8ad8e4774f..b35be8e150 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -3804,8 +3804,8 @@ syncrepl_unparse( syncinfo_t *si, struct berval *bv ) si->si_bindconf.sb_version = LDAP_VERSION3; ptr = buf; - ptr += snprintf( ptr, WHATSLEFT, IDSTR "=%03ld " PROVIDERSTR "=%s", - (long)si->si_rid, si->si_bindconf.sb_uri.bv_val ); + ptr += snprintf( ptr, WHATSLEFT, IDSTR "=%03d " PROVIDERSTR "=%s", + si->si_rid, si->si_bindconf.sb_uri.bv_val ); if ( ptr - buf >= sizeof( buf ) ) return; if ( !BER_BVISNULL( &bc ) ) { if ( WHATSLEFT <= bc.bv_len ) {