mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 08:39:37 -05:00
fix arbitrary precision number display when no big number library is available
This commit is contained in:
parent
499906f464
commit
a27a32ccc4
1 changed files with 2 additions and 2 deletions
|
|
@ -1681,11 +1681,11 @@ LDAP_SLAPD_F (int) fe_extended LDAP_P((Operation *op, SlapReply *rs));
|
|||
do { \
|
||||
char buf[] = "+9223372036854775807L"; \
|
||||
ber_len_t len; \
|
||||
snprintf( buf, sizeof( buf ), UI2BV_FORMAT, (ui) ); \
|
||||
len = strlen( buf ); \
|
||||
len = snprintf( buf, sizeof( buf ), UI2BV_FORMAT, (ui) ); \
|
||||
if ( len > (bv)->bv_len ) { \
|
||||
(bv)->bv_val = ber_memrealloc_x( (bv)->bv_val, len + 1, (ctx) ); \
|
||||
} \
|
||||
(bv)->bv_len = len; \
|
||||
AC_MEMCPY( (bv)->bv_val, buf, len + 1 ); \
|
||||
} while ( 0 )
|
||||
#endif /* ! HAVE_GMP */
|
||||
|
|
|
|||
Loading…
Reference in a new issue