From 1ed9d5f6db10745dbe2a8c7bf5f4d5b98ad66670 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Mon, 11 Sep 2006 22:13:49 +0000 Subject: fixed str2identifier: convert handle to hexadecimal --- hcid/dbus-sdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit