From 99f16dc7625705707139bf943bef44cd895223b3 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 31 Jul 2014 15:09:17 +0300 Subject: [PATCH] audio/avrcp: Fix not continuing from the correct index The first valid index is 0 not 1. --- profiles/audio/avrcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index 29edd3363..b8f934acc 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -2252,7 +2252,7 @@ static gboolean avrcp_list_items_rsp(struct avctp *conn, uint8_t *operands, items = g_slist_length(p->items); total = p->end - p->start + 1; if (items < total) { - avrcp_list_items(session, p->start + items + 1, p->end); + avrcp_list_items(session, p->start + items, p->end); return FALSE; } -- 2.47.3