From 00c5291f29b60ecd63748dac52c86d8f479ad4d2 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Mon, 18 Jun 2012 07:54:10 +0000 Subject: [PATCH] Fix the previous commit to only copy the data we were asked to and not twice as much. Spotted by: Taku YAMAMOTO --- sys/dev/fb/fbreg.h | 1 + 1 file changed, 1 insertion(+) 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++; }