summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-sdp.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/dbus-sdp.c')
-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)