summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-04-10 15:24:14 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-04-10 15:24:14 +0000
commitf895f6df807b623b2cdd041e9666b01b7f266eb7 (patch)
treee83761dee450affcb0e9bae6d2241805df795d46 /hcid
parentc853057d20c7539d5214d0a126055baacb60887f (diff)
Fixed major/minor class in Adapter.GetInfo
Diffstat (limited to 'hcid')
-rw-r--r--hcid/dbus-adapter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c
index b67a3d3e..efbb0ac0 100644
--- a/hcid/dbus-adapter.c
+++ b/hcid/dbus-adapter.c
@@ -303,7 +303,7 @@ static DBusHandlerResult adapter_get_info(DBusConnection *conn,
if (!read_local_class(&ba, cls)) {
uint32_t class;
- memcpy(cls, &class, 3);
+ memcpy(&class, cls, 3);
append_dict_entry(&dict, "class", DBUS_TYPE_UINT32, &class);
property = major_class_str(class);