summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'profiles')
-rw-r--r--profiles/audio/avrcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index da2a7464f..29edd3363 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -2250,7 +2250,7 @@ static gboolean avrcp_list_items_rsp(struct avctp *conn, uint8_t *operands,
}
items = g_slist_length(p->items);
- total = p->end - p->start;
+ total = p->end - p->start + 1;
if (items < total) {
avrcp_list_items(session, p->start + items + 1, p->end);
return FALSE;