Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jun 2012 07:54:11 +0000 (UTC)
From:      Poul-Henning Kamp <phk@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r237223 - head/sys/dev/fb
Message-ID:  <201206180754.q5I7sBoQ063448@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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++;
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206180754.q5I7sBoQ063448>