diff options
author | phk <phk@FreeBSD.org> | 2012-06-18 07:54:10 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2012-06-18 07:54:10 +0000 |
commit | 531d1339b7a6e855d7008146bde70b93b94a3060 (patch) | |
tree | c31cb01dac1359806ade766dddc7fe56539b15f4 /sys/dev/fb | |
parent | 85a3f61dca1bdf79e3879af425c06e9ee30829ad (diff) | |
download | FreeBSD-src-531d1339b7a6e855d7008146bde70b93b94a3060.zip FreeBSD-src-531d1339b7a6e855d7008146bde70b93b94a3060.tar.gz |
Fix the previous commit to only copy the data we were asked to and not
twice as much.
Spotted by: Taku YAMAMOTO
Diffstat (limited to 'sys/dev/fb')
-rw-r--r-- | sys/dev/fb/fbreg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/fb/fbreg.h b/sys/dev/fb/fbreg.h index ac9a6c3..c9689d3 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++; } |