]> git.sur5r.net Git - openldap/commitdiff
s/%d/%x/
authorPierangelo Masarati <ando@openldap.org>
Mon, 1 Oct 2007 16:28:27 +0000 (16:28 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 1 Oct 2007 16:28:27 +0000 (16:28 +0000)
servers/slapd/ldapsync.c

index 99905ac67718307073724ce3ad902d686fc1ad65..fc324bc0bf935d2a44ab11231406a464526aeaa0 100644 (file)
@@ -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 );