We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e32d3f1 commit c022f55Copy full SHA for c022f55
libusb/hid.c
@@ -737,7 +737,7 @@ static void read_callback(struct libusb_transfer *transfer)
737
if (transfer->status == LIBUSB_TRANSFER_COMPLETED) {
738
739
struct input_report *rpt = (struct input_report*) malloc(sizeof(*rpt));
740
- rpt->data = (uint8_t *) malloc(transfer->actual_length);
+ rpt->data = (uint8_t*) malloc(transfer->actual_length);
741
memcpy(rpt->data, transfer->buffer, transfer->actual_length);
742
rpt->len = transfer->actual_length;
743
rpt->next = NULL;
0 commit comments