summaryrefslogtreecommitdiffstats
path: root/binding/bluetooth-agent.c
diff options
context:
space:
mode:
Diffstat (limited to 'binding/bluetooth-agent.c')
-rw-r--r--binding/bluetooth-agent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/binding/bluetooth-agent.c b/binding/bluetooth-agent.c
index b6ae5fe..a942baa 100644
--- a/binding/bluetooth-agent.c
+++ b/binding/bluetooth-agent.c
@@ -101,7 +101,8 @@ static void handle_method_call(
jev = json_object_new_object();
json_object_object_add(jev, "action", json_object_new_string("request_confirmation"));
- json_object_object_add(jev, "device", json_object_new_string(path));
+
+ json_process_path(jev, path);
json_object_object_add(jev, "pincode", json_object_new_int(pin));
cw->agent_data.pin_code = pin;