Null termination is already doing inside the function hci_read_local_name(). --- tools/hciconfig.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/tools/hciconfig.c b/tools/hciconfig.c index f1458b9..d618aa7 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -623,8 +623,6 @@ static void cmd_name(int ctl, int hdev, char *opt) name[i] = '.'; } - name[248] = '\0'; - print_dev_hdr(&di); printf("\tName: '%s'\n", name); } -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html