mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Just use memcpy since we know it's non-overlapping
This commit is contained in:
parent
141a43c1ee
commit
c4ddf352ba
@ -602,7 +602,7 @@ static int mdb_entry_encode(Operation *op, MDB_txn *txn, Entry *e, MDB_val *data
|
|||||||
mdb_entry_putlen(&ptr, i);
|
mdb_entry_putlen(&ptr, i);
|
||||||
for (i=0; a->a_vals[i].bv_val; i++) {
|
for (i=0; a->a_vals[i].bv_val; i++) {
|
||||||
mdb_entry_putlen(&ptr, a->a_vals[i].bv_len);
|
mdb_entry_putlen(&ptr, a->a_vals[i].bv_len);
|
||||||
AC_MEMCPY(ptr, a->a_vals[i].bv_val,
|
memcpy(ptr, a->a_vals[i].bv_val,
|
||||||
a->a_vals[i].bv_len);
|
a->a_vals[i].bv_len);
|
||||||
ptr += a->a_vals[i].bv_len;
|
ptr += a->a_vals[i].bv_len;
|
||||||
*ptr++ = '\0';
|
*ptr++ = '\0';
|
||||||
@ -611,7 +611,7 @@ static int mdb_entry_encode(Operation *op, MDB_txn *txn, Entry *e, MDB_val *data
|
|||||||
mdb_entry_putlen(&ptr, i);
|
mdb_entry_putlen(&ptr, i);
|
||||||
for (i=0; a->a_nvals[i].bv_val; i++) {
|
for (i=0; a->a_nvals[i].bv_val; i++) {
|
||||||
mdb_entry_putlen(&ptr, a->a_nvals[i].bv_len);
|
mdb_entry_putlen(&ptr, a->a_nvals[i].bv_len);
|
||||||
AC_MEMCPY(ptr, a->a_nvals[i].bv_val,
|
memcpy(ptr, a->a_nvals[i].bv_val,
|
||||||
a->a_nvals[i].bv_len);
|
a->a_nvals[i].bv_len);
|
||||||
ptr += a->a_nvals[i].bv_len;
|
ptr += a->a_nvals[i].bv_len;
|
||||||
*ptr++ = '\0';
|
*ptr++ = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user