mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-15 22:20:59 +00:00
btstack_util: fix warnings
This commit is contained in:
parent
f2a94e3bf6
commit
a5f7b8d3ad
@ -495,7 +495,7 @@ uint16_t btstack_next_cid_ignoring_zero(uint16_t current_cid){
|
||||
}
|
||||
|
||||
void btstack_strcpy(char * dst, uint16_t dst_size, const char * src){
|
||||
uint16_t bytes_to_copy = btstack_min( dst_size - 1, strlen(src));
|
||||
uint16_t bytes_to_copy = (uint16_t) btstack_min( dst_size - 1, (uint32_t) strlen(src));
|
||||
(void) memcpy(dst, src, bytes_to_copy);
|
||||
dst[dst_size-1] = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user