Add host string descriptor functions

Plus typo fixes, GCC11 array bounds fix, snprintf for malloc-free
debug and pragmas for alignment checks.
This commit is contained in:
Scott Shawcroft
2022-03-03 16:53:22 -08:00
parent 7c627f58d7
commit 2cd73ca602
7 changed files with 78 additions and 4 deletions

View File

@@ -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;
}