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++;
 }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to