summaryrefslogtreecommitdiff
path: root/src/common/tusb_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/tusb_common.h')
-rw-r--r--src/common/tusb_common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h
index 687f980be..1899b35cc 100644
--- a/src/common/tusb_common.h
+++ b/src/common/tusb_common.h
@@ -372,7 +372,7 @@ typedef struct
static inline const char* tu_lookup_find(tu_lookup_table_t const* p_table, uint32_t key)
{
- static char not_found[10];
+ static char not_found[11];
for(uint16_t i=0; i<p_table->count; i++)
{
@@ -380,7 +380,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", key);
+ sprintf(not_found, "0x%08lX", (unsigned long) key);
return not_found;
}