diff --git a/module/zfs/dmu.c b/module/zfs/dmu.c index 51f912c142..8e0e910e08 100644 --- a/module/zfs/dmu.c +++ b/module/zfs/dmu.c @@ -727,7 +727,7 @@ dmu_write(objset_t *os, uint64_t object, uint64_t offset, uint64_t size, else dmu_buf_will_dirty(db, tx); - bcopy(buf, (char *)db->db_data + bufoff, tocpy); + (void) memcpy((char *)db->db_data + bufoff, buf, tocpy); if (tocpy == db->db_size) dmu_buf_fill_done(db, tx);