From 51012a010409b1a5db24562e3cda120623a0360f Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Sat, 16 Nov 2013 15:09:45 +0100 Subject: [PATCH] android: Fix sending invalid remote device property event Remote device property event has variable length, pass whole event length to ipc_send, not only header. --- android/bluetooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/bluetooth.c b/android/bluetooth.c index 4439cc67e..6a7ba9dd3 100644 --- a/android/bluetooth.c +++ b/android/bluetooth.c @@ -605,7 +605,7 @@ static void send_remote_device_name_prop(const bdaddr_t *bdaddr) memcpy(&ev->props[0].val, name, strlen(name)); ipc_send(notification_sk, HAL_SERVICE_ID_BLUETOOTH, - HAL_EV_REMOTE_DEVICE_PROPS, sizeof(ev), ev, -1); + HAL_EV_REMOTE_DEVICE_PROPS, ev_len, ev, -1); g_free(ev); } -- 2.47.3