diff options
| author | Ha Thach <[email protected]> | 2023-02-27 10:22:53 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-27 10:22:53 +0700 |
| commit | 65ac519715ea0ecace08b183f2d8730d0450affd (patch) | |
| tree | 11c48c98d3afea290e460deed624a07bac0607e7 /src/tusb.c | |
| parent | 73afca14eb589af84e932fdafbeeea8f8db1e771 (diff) | |
| parent | e34aeb5cf69315d2d7711f0a1d040a28492d026d (diff) | |
Merge pull request #1852 from silvergasp/mem_s
fix: Replace device calls to memcpy with tu_memcpy_s
Diffstat (limited to 'src/tusb.c')
| -rw-r--r-- | src/tusb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tusb.c b/src/tusb.c index 44b34b0e6..85fe5a3cc 100644 --- a/src/tusb.c +++ b/src/tusb.c @@ -495,7 +495,7 @@ void tu_print_mem(void const *buf, uint32_t count, uint8_t indent) tu_printf("%04X: ", 16*i/item_per_line); } - memcpy(&value, buf8, size); + tu_memcpy_s(&value, sizeof(value), buf8, size); buf8 += size; tu_printf(" "); |
