Navigation Menu

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 22, 2017
1 parent 966a960 commit 21d8624
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drivers/bus/usb.c
Expand Up @@ -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 );
Expand Down

0 comments on commit 21d8624

Please sign in to comment.