Browse Source

[usb] Use correct length for memcpy()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 7 years ago
parent
commit
7b113bc744
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/drivers/bus/usb.c

+ 2
- 1
src/drivers/bus/usb.c View File

1022
 	}
1022
 	}
1023
 
1023
 
1024
 	/* Describe function */
1024
 	/* Describe function */
1025
-	memcpy ( &desc->class, &interface->class, sizeof ( desc->class ) );
1025
+	memcpy ( &desc->class.class, &interface->class,
1026
+		 sizeof ( desc->class.class ) );
1026
 	desc->count = 1;
1027
 	desc->count = 1;
1027
 	interfaces[0] = first;
1028
 	interfaces[0] = first;
1028
 
1029
 

Loading…
Cancel
Save