X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FUSB%2FHID%2Fmain.c;h=c2802737dabca2747c2a613f5fc53b60f158e58d;hb=36b950d17b828c7cd2e5e9dbe5fb4cbded89889c;hp=6b36809ad76e7486cff6ab39d13075d6f4f56573;hpb=3ae2c079ea44ea7a8fb1a65e7b9ff5d76f3f4c24;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/USB/HID/main.c b/KernelLand/Modules/USB/HID/main.c index 6b36809a..c2802737 100644 --- a/KernelLand/Modules/USB/HID/main.c +++ b/KernelLand/Modules/USB/HID/main.c @@ -149,7 +149,7 @@ void HID_DeviceConnected(tUSBInterface *Dev, void *Descriptors, size_t Descripto // --- Read and parse report descriptor --- // NOTE: Also does sub-driver selection and initialisation - Uint8 *report_data = alloca(report_len); + Uint8 report_data[report_len]; USB_ReadDescriptor(Dev, 0x1022, 0, report_len, report_data); HID_int_ParseReport(Dev, report_data, report_len, &gHID_RootCallbacks);