Replace all sprintf with snprintf

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-03-05 22:34:33 +08:00
committed by Alin Jerpelea
parent fa8719bb5a
commit 6f6fce95a2
36 changed files with 120 additions and 84 deletions
+1 -1
View File
@@ -204,7 +204,7 @@ static inline int bt_addr_le_to_str(FAR const bt_addr_le_t *addr, char *str,
break;
default:
sprintf(type, "0x%02x", addr->type);
snprintf(type, sizeof(type), "0x%02x", addr->type);
break;
}