Commit e363dec
Bluetooth: fix strncpy call in bt_set_name
In bt_set_name we already get name length so let's use it in strncpy
Also fix warning with enable -Wstringop-truncation
Signed-off-by: Ilya Averyanov <[email protected]>1 parent 8825ce0 commit e363dec
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6723 | 6723 | | |
6724 | 6724 | | |
6725 | 6725 | | |
6726 | | - | |
| 6726 | + | |
6727 | 6727 | | |
6728 | 6728 | | |
6729 | 6729 | | |
6730 | 6730 | | |
6731 | 6731 | | |
6732 | 6732 | | |
6733 | 6733 | | |
6734 | | - | |
| 6734 | + | |
| 6735 | + | |
6735 | 6736 | | |
6736 | 6737 | | |
6737 | 6738 | | |
6738 | 6739 | | |
6739 | | - | |
| 6740 | + | |
6740 | 6741 | | |
6741 | 6742 | | |
6742 | 6743 | | |
| |||
0 commit comments