diff --git a/sys/dev/fb/fbreg.h b/sys/dev/fb/fbreg.h index ac9a6c37744..c9689d38d15 100644 --- a/sys/dev/fb/fbreg.h +++ b/sys/dev/fb/fbreg.h @@ -39,6 +39,7 @@ static __inline void copyw(uint16_t *src, uint16_t *dst, size_t size) { + size >>= 1; while (size--) *dst++ = *src++; }