From fd02ec9d91d6446357d26b74f47949634b6ad6b9 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Thu, 7 Nov 2013 10:10:37 +0100 Subject: [PATCH] android: Use payload member to access message data This make it similar to other places in code. --- android/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/main.c b/android/main.c index 2c587b192..71fc60bcd 100644 --- a/android/main.c +++ b/android/main.c @@ -254,7 +254,7 @@ static gboolean cmd_watch_cb(GIOChannel *io, GIOCondition cond, switch (msg->service_id) { case HAL_SERVICE_ID_CORE: - handle_service_core(msg->opcode, buf + sizeof(*msg), msg->len); + handle_service_core(msg->opcode, msg->payload, msg->len); break; case HAL_SERVICE_ID_BLUETOOTH: bt_adapter_handle_cmd(fd, msg->opcode, msg->payload, msg->len); -- 2.47.3