--- audio/avrcp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/audio/avrcp.c b/audio/avrcp.c index 0d9b6d0..3576008 100644 --- a/audio/avrcp.c +++ b/audio/avrcp.c @@ -603,7 +603,7 @@ static uint8_t avrcp_handle_get_element_attributes(struct avrcp_player *player, nattr = pdu->params[8]; if (!nattr) { - for (i = 1; i < AVRCP_MEDIA_ATTRIBUTE_LAST; i++) { + for (i = 1; i <= AVRCP_MEDIA_ATTRIBUTE_LAST; i++) { size = player_get_media_attribute(player, i, &pdu->params[pos], AVRCP_PDU_MTU - pos); -- 1.7.7 -- 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