From c4ddf352ba494a3809fda48f0ee61dc0f958cf14 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 12 Sep 2011 11:05:38 -0700 Subject: [PATCH] Just use memcpy since we know it's non-overlapping --- servers/slapd/back-mdb/id2entry.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/slapd/back-mdb/id2entry.c b/servers/slapd/back-mdb/id2entry.c index 4ea650aa18..40dabf48c5 100644 --- a/servers/slapd/back-mdb/id2entry.c +++ b/servers/slapd/back-mdb/id2entry.c @@ -602,7 +602,7 @@ static int mdb_entry_encode(Operation *op, MDB_txn *txn, Entry *e, MDB_val *data mdb_entry_putlen(&ptr, i); for (i=0; a->a_vals[i].bv_val; i++) { 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); ptr += a->a_vals[i].bv_len; *ptr++ = '\0'; @@ -611,8 +611,8 @@ static int mdb_entry_encode(Operation *op, MDB_txn *txn, Entry *e, MDB_val *data mdb_entry_putlen(&ptr, i); for (i=0; a->a_nvals[i].bv_val; i++) { mdb_entry_putlen(&ptr, a->a_nvals[i].bv_len); - AC_MEMCPY(ptr, a->a_nvals[i].bv_val, - a->a_nvals[i].bv_len); + memcpy(ptr, a->a_nvals[i].bv_val, + a->a_nvals[i].bv_len); ptr += a->a_nvals[i].bv_len; *ptr++ = '\0'; } -- 2.39.5