btstack_link_key_db_fs: use btstack_snprintf_assert_complete

This commit is contained in:
Matthias Ringwald 2024-10-11 18:32:30 +02:00
parent c75b474d0b
commit d5bacf302a

View File

@ -85,7 +85,7 @@ static char *link_key_to_str(link_key_t link_key){
static char link_key_type_to_str_buffer[2];
static char *link_key_type_to_str(link_key_type_t link_key){
snprintf(link_key_type_to_str_buffer, sizeof(link_key_type_to_str_buffer), "%d", link_key);
btstack_snprintf_assert_complete(link_key_type_to_str_buffer, sizeof(link_key_type_to_str_buffer), "%d", link_key);
return (char *) link_key_type_to_str_buffer;
}