|
@@ -301,7 +301,7 @@ static void usb_wacom_handle_control(USBDevice *dev, USBPacket *p,
|
|
static void usb_wacom_handle_data(USBDevice *dev, USBPacket *p)
|
|
static void usb_wacom_handle_data(USBDevice *dev, USBPacket *p)
|
|
{
|
|
{
|
|
USBWacomState *s = (USBWacomState *) dev;
|
|
USBWacomState *s = (USBWacomState *) dev;
|
|
- uint8_t buf[p->iov.size];
|
|
|
|
|
|
+ g_autofree uint8_t *buf = g_malloc(p->iov.size);
|
|
int len = 0;
|
|
int len = 0;
|
|
|
|
|
|
switch (p->pid) {
|
|
switch (p->pid) {
|