Skip to content

Commit 129e05c

Browse files
fnde-otjhedberg
authored andcommitted
bluetooth: host: fix missing log_strdup
Fix missing log_strdup when loading bt/name setting. It should be done on every string which is not in read only memory. Signed-off-by: François Delawarde <[email protected]>
1 parent eaa6058 commit 129e05c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/settings.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ static int set(const char *name, size_t len_rd, settings_read_cb read_cb,
168168
} else {
169169
bt_dev.name[len] = '\0';
170170

171-
BT_DBG("Name set to %s", bt_dev.name);
171+
BT_DBG("Name set to %s", log_strdup(bt_dev.name));
172172
}
173173
return 0;
174174
}

0 commit comments

Comments
 (0)