mirror of
https://github.com/ipxe/ipxe
synced 2025-12-11 22:11:08 +03:00
[usb] Use correct length for memcpy()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1022,7 +1022,8 @@ static int usb_describe ( struct usb_device *usb,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Describe function */
|
/* Describe function */
|
||||||
memcpy ( &desc->class, &interface->class, sizeof ( desc->class ) );
|
memcpy ( &desc->class.class, &interface->class,
|
||||||
|
sizeof ( desc->class.class ) );
|
||||||
desc->count = 1;
|
desc->count = 1;
|
||||||
interfaces[0] = first;
|
interfaces[0] = first;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user