mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:49:22 +08:00
Replace all sprintf with snprintf
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alin Jerpelea
parent
fa8719bb5a
commit
6f6fce95a2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user