david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[usb] Use correct length for memcpy()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2017-03-22 14:14:57 +02:00
parent 966a960a83
commit 21d8624da8
1 changed files with 2 additions and 2 deletions

View File

@ -1005,8 +1005,8 @@ static int usb_describe ( struct usb_device *usb,
}
/* Describe function */
memcpy ( &desc->class, &association->class,
sizeof ( desc->class ) );
memcpy ( &desc->class.class, &association->class,
sizeof ( desc->class.class ) );
desc->count = association->count;
for ( i = 0 ; i < association->count ; i++ )
interfaces[i] = ( first + i );