OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dce613e
)
android/client: Don't align name property while printing
author
Szymon Janc
<szymon.janc@tieto.com>
Thu, 31 Oct 2013 13:22:01 +0000
(14:22 +0100)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Thu, 31 Oct 2013 13:48:07 +0000
(15:48 +0200)
Received name property is guaranteed to be NULL terminated so there is
no need to use length specifier. This also fix really long space while
printing due to text alignment to the right.
android/client/if-bt.c
patch
|
blob
|
history
diff --git
a/android/client/if-bt.c
b/android/client/if-bt.c
index
16bd882
..
c9681fc
100644
(file)
--- a/
android/client/if-bt.c
+++ b/
android/client/if-bt.c
@@
-88,8
+88,7
@@
static char *btproperty2str(bt_property_t property)
switch (property.type) {
case BT_PROPERTY_BDNAME:
case BT_PROPERTY_REMOTE_FRIENDLY_NAME:
- sprintf(p, "%*s", property.len,
- ((bt_bdname_t *) property.val)->name);
+ sprintf(p, "%s", ((bt_bdname_t *) property.val)->name);
break;
case BT_PROPERTY_BDADDR: