Skip to content

Commit

Permalink
[usb] Use correct length for memcpy()
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Mar 21, 2017
1 parent d25e7da commit 7b113bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/drivers/bus/usb.c
Expand Up @@ -1022,7 +1022,8 @@ static int usb_describe ( struct usb_device *usb,
}

/* Describe function */
memcpy ( &desc->class, &interface->class, sizeof ( desc->class ) );
memcpy ( &desc->class.class, &interface->class,
sizeof ( desc->class.class ) );
desc->count = 1;
interfaces[0] = first;

Expand Down

0 comments on commit 7b113bc

Please sign in to comment.