mirror of
https://github.com/hathach/tinyusb.git
synced 2026-08-18 11:02:16 +00:00
Fix RT-Thread MSC inquiry string bounds
This commit is contained in:
@ -49,9 +49,9 @@ void tud_msc_inquiry_cb(uint8_t lun, uint8_t vendor_id[8], uint8_t product_id[16
|
||||
const char pid[] = PKG_TINYUSB_DEVICE_MSC_PID;
|
||||
const char rev[] = PKG_TINYUSB_DEVICE_MSC_REV;
|
||||
|
||||
memcpy(vendor_id, vid, strlen(vid));
|
||||
memcpy(product_id, pid, strlen(pid));
|
||||
memcpy(product_rev, rev, strlen(rev));
|
||||
strncpy((char*) vendor_id, vid, 8);
|
||||
strncpy((char*) product_id, pid, 16);
|
||||
strncpy((char*) product_rev, rev, 4);
|
||||
}
|
||||
|
||||
bool tud_msc_test_unit_ready_cb(uint8_t lun)
|
||||
|
||||
Reference in New Issue
Block a user