Fixed HID report parser corruption when parsing PUSH and POP report item elements.
[pub/USBasp.git] / LUFA / Drivers / USB / Class / Common / HIDParser.c
index 04fd760..87eaf7c 100644 (file)
@@ -92,7 +92,7 @@ uint8_t USB_ProcessHIDReport(const uint8_t* ReportData,
 
                                memcpy((CurrStateTable + 1),
                                       CurrStateTable,
-                                      sizeof(HID_ReportItem_t));
+                                      sizeof(HID_StateTable_t));
 
                                CurrStateTable++;
                                break;