summaryrefslogtreecommitdiffstats
path: root/network/manager.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-09-13 15:53:38 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-09-13 15:53:38 +0000
commitd474eef5f19a18f6414b042d127582e249953af1 (patch)
tree19e08680169e0ac17ef13da1c69fbe3b8e1dd5cc /network/manager.c
parentdf26034b4deb62777d841e04eabe4f8af2c1f41a (diff)
network: add one space between the remote device name and the service name
Diffstat (limited to 'network/manager.c')
-rw-r--r--network/manager.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/network/manager.c b/network/manager.c
index 5c619d94..52e7dd6a 100644
--- a/network/manager.c
+++ b/network/manager.c
@@ -264,8 +264,12 @@ static void pan_record_reply(DBusPendingCall *call, void *data)
d = sdp_data_get(rec, SDP_ATTR_SVCNAME_PRIMARY);
if (d) {
- snprintf(name + len, MAX_NAME_SIZE - len, "(%.*s)",
- d->unitSize, d->val.str);
+ if (len)
+ snprintf(name + len, MAX_NAME_SIZE - len, " (%.*s)",
+ d->unitSize, d->val.str);
+ else
+ snprintf(name, MAX_NAME_SIZE, "%.*s",
+ d->unitSize, d->val.str);
}
/* Extract service description from record */