Bluetooth: Mesh: fix different signedness
CC: subsys/bluetooth/mesh/prov.c subsys/bluetooth/mesh/prov.c: In function 'bt_mesh_input_string': subsys/bluetooth/mesh/prov.c:616:14: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] 616 | strncpy(link.auth, str, prov->input_size); | ~~~~^~~~~ | | | uint8_t * {aka unsigned char *} Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
0b849744cd
commit
95e4eb8867
1 changed files with 1 additions and 1 deletions
|
@ -613,7 +613,7 @@ int bt_mesh_input_string(const char *str)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
strncpy(link.auth, str, prov->input_size);
|
||||
strncpy((char *)link.auth, str, prov->input_size);
|
||||
|
||||
send_input_complete();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue