summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
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);