From: Pierangelo Masarati Date: Fri, 6 Jan 2006 16:23:17 +0000 (+0000) Subject: cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~441 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2c21dbd56f0214b89395c18f378063f6eed7d9e8;p=openldap cleanup --- diff --git a/servers/slapd/add.c b/servers/slapd/add.c index 3a022e8596..9056e412ae 100644 --- a/servers/slapd/add.c +++ b/servers/slapd/add.c @@ -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();