From 8e7087f4b82a280e18f6910cfda78293515ef7b4 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sun, 24 Dec 2017 00:28:03 +0100 Subject: [PATCH] avrcp: fix size of emitted event --- src/classic/avrcp_browsing_controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classic/avrcp_browsing_controller.c b/src/classic/avrcp_browsing_controller.c index e870610e9..feb900ec1 100644 --- a/src/classic/avrcp_browsing_controller.c +++ b/src/classic/avrcp_browsing_controller.c @@ -390,7 +390,7 @@ static void avrcp_browsing_controller_handle_can_send_now(avrcp_browsing_connect static void avrcp_browsing_controller_emit_done(btstack_packet_handler_t callback, uint16_t browsing_cid, uint8_t browsing_status, uint8_t bluetooth_status){ if (!callback) return; - uint8_t event[6]; + uint8_t event[7]; int pos = 0; event[pos++] = HCI_EVENT_AVRCP_META; event[pos++] = sizeof(event) - 2;