Fix the previous commit to only copy the data we were asked to and not

twice as much.

Spotted by:	Taku YAMAMOTO
This commit is contained in:
Poul-Henning Kamp 2012-06-18 07:54:10 +00:00
parent e84a11e7ff
commit 00c5291f29
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=237223

View file

@ -39,6 +39,7 @@
static __inline void
copyw(uint16_t *src, uint16_t *dst, size_t size)
{
size >>= 1;
while (size--)
*dst++ = *src++;
}