diff options
| author | hathach <[email protected]> | 2026-04-26 23:15:49 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-04-28 16:38:36 +0700 |
| commit | 3792a9a3871cad32d7f38bc831417f60aeb17aff (patch) | |
| tree | 903921b57be34e546640c7b0801cd58e32a4ae7f /examples/device/cdc_msc_throughput/src | |
| parent | cf50ea245bb02fc5674ef2ba6a3593a27c005b82 (diff) | |
fix warning, change hil jlink for feather nrf52840
Diffstat (limited to 'examples/device/cdc_msc_throughput/src')
| -rw-r--r-- | examples/device/cdc_msc_throughput/src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/device/cdc_msc_throughput/src/main.c b/examples/device/cdc_msc_throughput/src/main.c index b6a0705a3..116cbe13f 100644 --- a/examples/device/cdc_msc_throughput/src/main.c +++ b/examples/device/cdc_msc_throughput/src/main.c @@ -99,9 +99,9 @@ void tud_msc_inquiry_cb(uint8_t lun, uint8_t vendor_id[8], uint8_t product_id[16 const char vid[] = "TinyUSB"; const char pid[] = "Mass Storage"; const char rev[] = "1.0"; - memcpy(vendor_id, vid, strlen(vid)); - memcpy(product_id, pid, strlen(pid)); - memcpy(product_rev, rev, strlen(rev)); + (void) strncpy((char*) vendor_id, vid, 8); + (void) strncpy((char*) product_id, pid, 16); + (void) strncpy((char*) product_rev, rev, 4); } bool tud_msc_test_unit_ready_cb(uint8_t lun) { |
