lib: Fix compiler warning from wrong array size 98/204998/1
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 23 May 2018 14:35:32 +0000 (16:35 +0200)
committerAmit Purwar <amit.purwar@samsung.com>
Mon, 29 Apr 2019 04:08:59 +0000 (09:38 +0530)
Change-Id: Ia0e7212821f17317447fe0c542151d00cfe24933
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
lib/hci.c

index 0cdb471..10930cb 100755 (executable)
--- a/lib/hci.c
+++ b/lib/hci.c
@@ -1647,11 +1647,7 @@ int hci_write_local_name(int dd, const char *name, int to)
        struct hci_request rq;
 
        memset(&cp, 0, sizeof(cp));
-#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
        strncpy((char *) cp.name, name, sizeof(cp.name) - 1);
-#else
-       strncpy((char *) cp.name, name, sizeof(cp.name));
-#endif
 
        memset(&rq, 0, sizeof(rq));
        rq.ogf    = OGF_HOST_CTL;