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 4439cc6..6a7ba9d 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); } -- 1.8.4.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html