From c7a838af87de0a3fdd9f5e3116eb4b801d74c3b0 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Thu, 31 Oct 2013 14:22:01 +0100 Subject: [PATCH] android/client: Don't align name property while printing 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/android/client/if-bt.c b/android/client/if-bt.c index 16bd88231..c9681fc05 100644 --- 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: -- 2.47.3