diff options
Diffstat (limited to 'hw/usb/dev-hid.c')
-rw-r--r-- | hw/usb/dev-hid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/dev-hid.c b/hw/usb/dev-hid.c index fc39bab..1c7ae97 100644 --- a/hw/usb/dev-hid.c +++ b/hw/usb/dev-hid.c @@ -656,7 +656,7 @@ static void usb_hid_handle_data(USBDevice *dev, USBPacket *p) { USBHIDState *us = USB_HID(dev); HIDState *hs = &us->hid; - uint8_t buf[p->iov.size]; + g_autofree uint8_t *buf = g_malloc(p->iov.size); int len = 0; switch (p->pid) { |