> Mark Kettenis wrote: > > CVSROOT: /cvs > > Module name: src > > Changes by: kette...@cvs.openbsd.org 2016/05/14 08:24:54 > > > > Modified files: > > lib/libkvm : kvm.c > > > > Log message: > > Revert previous commit. Converting bcopy into memcpy is never safe when > > there is a big fat comment saying "Avoid alignment issues" immediately > > above them. > > what? memcpy works on unaligned memory just fine. >
not when the compiler thinks "hey i can do this myself, and i am damn sure it is aligned". then memcpy/memmove fail, whereas bcopy works.