mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-27 02:14:28 +03:00
Fix bcopy() to allow memory area overlap
Under Solaris bcopy() allows overlapping memory areas so we must use memmove() instead of memcpy(). Signed-off-by: Ricardo M. Correia <ricardo.correia@oracle.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
22cd0f19b1
commit
9dd5d138b2
@ -110,7 +110,7 @@
|
||||
/* Map some simple functions.
|
||||
*/
|
||||
#define bzero(ptr,size) memset(ptr,0,size)
|
||||
#define bcopy(src,dest,size) memcpy(dest,src,size)
|
||||
#define bcopy(src,dest,size) memmove(dest,src,size)
|
||||
#define bcmp(src,dest,size) memcmp((src), (dest), (size_t)(size))
|
||||
|
||||
/* Dtrace probes do not exist in the linux kernel */
|
||||
|
Loading…
Reference in New Issue
Block a user