projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7637eb7
)
lib: Fix compiler warning from wrong array size
98/204998/1
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 23 May 2018 14:35:32 +0000
(16:35 +0200)
committer
Amit 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
patch
|
blob
|
history
diff --git
a/lib/hci.c
b/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;