[PATCH BlueZ 08/19] hciconfig: Remove unwanted NULL termination

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux