From 5ed0fc37494b835aeeb39bd55ee6d71cedad8143 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 24 Feb 2007 18:29:55 +0000 Subject: [PATCH] re-fix previus commit the other way 'round (rids are < 1000) --- servers/slapd/syncrepl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) { -- 2.39.5