mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
s/%d/%x/
This commit is contained in:
parent
291c8d9bd8
commit
05d2ce40b9
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user