diff options
author | Drashna Jaelre <drashna@live.com> | 2019-07-03 07:40:48 -0700 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-07-03 07:55:32 -0700 |
commit | 7bb19fb19c536ae0a43edf383266bc22efd78561 (patch) | |
tree | 0f4a070919eaa40602c631804b2bc27a9b8a4e70 /LUFA/Drivers/USB/Class | |
parent | 10694a4a7148c97d862af4b84d50ffbe96ca2668 (diff) | |
download | lufa-7bb19fb19c536ae0a43edf383266bc22efd78561.tar.gz lufa-7bb19fb19c536ae0a43edf383266bc22efd78561.tar.bz2 lufa-7bb19fb19c536ae0a43edf383266bc22efd78561.zip |
Fix issue with gcc 8.10 compiler (qmk#2914)
Diffstat (limited to 'LUFA/Drivers/USB/Class')
-rw-r--r-- | LUFA/Drivers/USB/Class/Common/HIDParser.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/Class/Common/HIDParser.c b/LUFA/Drivers/USB/Class/Common/HIDParser.c index fe2ebc1d5..18c345655 100644 --- a/LUFA/Drivers/USB/Class/Common/HIDParser.c +++ b/LUFA/Drivers/USB/Class/Common/HIDParser.c @@ -90,7 +90,7 @@ uint8_t USB_ProcessHIDReport(const uint8_t* ReportData, if (CurrStateTable == &StateTable[HID_STATETABLE_STACK_DEPTH - 1]) return HID_PARSE_HIDStackOverflow; - memcpy((CurrStateTable + 1), + memmove((CurrStateTable + 1), CurrStateTable, sizeof(HID_StateTable_t)); @@ -386,4 +386,3 @@ uint16_t USB_GetHIDReportSize(HID_ReportInfo_t* const ParserData, return 0; } - |