summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2006-09-11 22:13:49 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2006-09-11 22:13:49 +0000
commit1ed9d5f6db10745dbe2a8c7bf5f4d5b98ad66670 (patch)
treec6ff20ea9237efcb22fcef58f514f18eb2f6c21d
parent403fe92018704cea4fa15489394734c47027b09c (diff)
fixed str2identifier: convert handle to hexadecimal
-rw-r--r--hcid/dbus-sdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/dbus-sdp.c b/hcid/dbus-sdp.c
index db01d0c8..70de2f8c 100644
--- a/hcid/dbus-sdp.c
+++ b/hcid/dbus-sdp.c
@@ -227,7 +227,7 @@ static int str2identifier(const char *identifier, char *address,
memset(address, 0, 18);
snprintf(address, 18, "%s", identifier);
- return (sscanf(identifier + 18, "%u", handle) > 0 ? 0 : -1);
+ return (sscanf(identifier + 18, "%x", handle) > 0 ? 0 : -1);
}
static struct service_record *service_record_new(sdp_record_t *rec)