From: Howard Chu Date: Mon, 12 Sep 2011 18:05:38 +0000 (-0700) Subject: Just use memcpy since we know it's non-overlapping X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c4ddf352ba494a3809fda48f0ee61dc0f958cf14;p=openldap Just use memcpy since we know it's non-overlapping --- 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'; }