mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 05:43:59 +00:00
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:
parent
e84a11e7ff
commit
00c5291f29
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=237223
|
@ -39,6 +39,7 @@
|
|||
static __inline void
|
||||
copyw(uint16_t *src, uint16_t *dst, size_t size)
|
||||
{
|
||||
size >>= 1;
|
||||
while (size--)
|
||||
*dst++ = *src++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue