From: Pierangelo Masarati Date: Mon, 1 Oct 2007 16:28:27 +0000 (+0000) Subject: s/%d/%x/ X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~572 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=05d2ce40b96a6b69886c6cad94cbfbdcc4490f4a;p=openldap s/%d/%x/ --- diff --git a/servers/slapd/ldapsync.c b/servers/slapd/ldapsync.c index 99905ac677..fc324bc0bf 100644 --- a/servers/slapd/ldapsync.c +++ b/servers/slapd/ldapsync.c @@ -51,7 +51,7 @@ slap_compose_sync_cookie( len = 0; } else { len = snprintf( cookiestr, sizeof( cookiestr ), - "rid=%03d", rid ); + "rid=%03x", rid ); if ( sid >= 0 ) { len += sprintf( cookiestr+len, ",sid=%03x", sid ); } @@ -72,7 +72,7 @@ slap_compose_sync_cookie( cookie->bv_val = slap_sl_malloc( len, op ? op->o_tmpmemctx : NULL ); - len = sprintf( cookie->bv_val, "rid=%03d,", rid ); + len = sprintf( cookie->bv_val, "rid=%03x,", rid ); ptr = cookie->bv_val + len; if ( sid >= 0 ) { ptr += sprintf( ptr, "sid=%03x,", sid );