diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h index eccfee34d..eded9abc0 100644 --- a/include/sys/sysmacros.h +++ b/include/sys/sysmacros.h @@ -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 */