diff options
| author | Scott Shawcroft <[email protected]> | 2022-03-03 16:53:22 -0800 |
|---|---|---|
| committer | Scott Shawcroft <[email protected]> | 2022-03-03 21:53:12 -0800 |
| commit | 2cd73ca60234748a15b74a2c346778fcb4f4ee61 (patch) | |
| tree | 1fd657340cc452f608f2477354a3bac8be7d939b /src/common | |
| parent | 7c627f58d785334cc701e0c4b3160e7fd573f88e (diff) | |
Add host string descriptor functions
Plus typo fixes, GCC11 array bounds fix, snprintf for malloc-free
debug and pragmas for alignment checks.
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h index 9b9e2b007..80bb40f77 100644 --- a/src/common/tusb_common.h +++ b/src/common/tusb_common.h @@ -349,7 +349,7 @@ static inline const char* tu_lookup_find(tu_lookup_table_t const* p_table, uint3 } // not found return the key value in hex - sprintf(not_found, "0x%08lX", (unsigned long) key); + snprintf(not_found, sizeof(not_found), "0x%08lX", (unsigned long) key); return not_found; } |
