]> git.sur5r.net Git - openldap/commitdiff
Just use memcpy since we know it's non-overlapping
authorHoward Chu <hyc@openldap.org>
Mon, 12 Sep 2011 18:05:38 +0000 (11:05 -0700)
committerHoward Chu <hyc@openldap.org>
Mon, 12 Sep 2011 18:05:38 +0000 (11:05 -0700)
servers/slapd/back-mdb/id2entry.c

index 4ea650aa18fd95ec34b31fd74cc98ffb253bd6a2..40dabf48c5fa08ad02ecfb4f5db67219f22e66b0 100644 (file)
@@ -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';
                                }