Skip to content
Commit 7884b929 authored by Théo Battrel's avatar Théo Battrel Committed by Benjamin Cabé
Browse files

Bluetooth: Host: Specify parameter needs of `bt_set_name`



State that the name given to `bt_set_name` must be null terminated.

If not, the behavior of the function may be wrong as it's using `strlen`
to get the length of the given name and `strcmp` to compare it to the
current device name. Both of those functions expect null terminated string.

Signed-off-by: default avatarThéo Battrel <theo.battrel@nordicsemi.no>
parent 87f11d7e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment