drivers/usbhost/hid_parser.c: Wrong size used in memcpy()

This commit is contained in:
xuhang
2016-01-25 20:00:11 -06:00
committed by Gregory Nutt
parent aad3b013f1
commit 26d40fa80c
2 changed files with 3 additions and 3 deletions
+1 -3
View File
@@ -139,9 +139,7 @@ int hid_parsereport(FAR const uint8_t *report, int rptlen,
return -E2BIG;
}
memcpy((currstate + 1),
currstate, sizeof(struct hid_rptitem_s));
memcpy((currstate + 1), currstate, sizeof(struct hid_state_s));
currstate++;
break;