mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
cleanup
This commit is contained in:
parent
5354f2d4e6
commit
2c21dbd56f
1 changed files with 2 additions and 2 deletions
|
|
@ -668,9 +668,9 @@ int slap_add_opattrs(
|
|||
ptr = ber_bvchr( &csn, '#' );
|
||||
if ( ptr ) {
|
||||
timestamp.bv_len = ptr - csn.bv_val;
|
||||
if ( timestamp.bv_len >= sizeof(timebuf) )
|
||||
if ( timestamp.bv_len >= sizeof(timebuf) ) /* ?!? */
|
||||
timestamp.bv_len = sizeof(timebuf) - 1;
|
||||
strncpy( timebuf, csn.bv_val, timestamp.bv_len );
|
||||
AC_MEMCPY( timebuf, csn.bv_val, timestamp.bv_len );
|
||||
timebuf[timestamp.bv_len] = '\0';
|
||||
} else {
|
||||
time_t now = slap_get_time();
|
||||
|
|
|
|||
Loading…
Reference in a new issue