svn commit: r237223 - head/sys/dev/fb
Poul-Henning Kamp
phk at FreeBSD.org
Mon Jun 18 07:54:11 UTC 2012
Author: phk
Date: Mon Jun 18 07:54:10 2012
New Revision: 237223
URL: http://svn.freebsd.org/changeset/base/237223
Log:
Fix the previous commit to only copy the data we were asked to and not
twice as much.
Spotted by: Taku YAMAMOTO
Modified:
head/sys/dev/fb/fbreg.h
Modified: head/sys/dev/fb/fbreg.h
==============================================================================
--- head/sys/dev/fb/fbreg.h Mon Jun 18 07:43:23 2012 (r237222)
+++ head/sys/dev/fb/fbreg.h Mon Jun 18 07:54:10 2012 (r237223)
@@ -39,6 +39,7 @@
static __inline void
copyw(uint16_t *src, uint16_t *dst, size_t size)
{
+ size >>= 1;
while (size--)
*dst++ = *src++;
}
More information about the svn-src-all
mailing list