Explorar el Código

[usb] Use correct length for memcpy()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown hace 7 años
padre
commit
21d8624da8
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/drivers/bus/usb.c

+ 2
- 2
src/drivers/bus/usb.c Ver fichero

1005
 		}
1005
 		}
1006
 
1006
 
1007
 		/* Describe function */
1007
 		/* Describe function */
1008
-		memcpy ( &desc->class, &association->class,
1009
-			 sizeof ( desc->class ) );
1008
+		memcpy ( &desc->class.class, &association->class,
1009
+			 sizeof ( desc->class.class ) );
1010
 		desc->count = association->count;
1010
 		desc->count = association->count;
1011
 		for ( i = 0 ; i < association->count ; i++ )
1011
 		for ( i = 0 ; i < association->count ; i++ )
1012
 			interfaces[i] = ( first + i );
1012
 			interfaces[i] = ( first + i );

Loading…
Cancelar
Guardar