mirror of https://github.com/ipxe/ipxe.git
[usb] Use correct length for memcpy()
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/58/merge
parent
d25e7daf47
commit
7b113bc744
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue