Diff between 7624841628f51dcddeac29bebd984e0f46b11e84 and 2135970779429089e1569f8d0f0098e6985835a3

Changed Files

File Additions Deletions Status
obexd/plugins/phonebook-ebook.c +2 -2 modified

Full Patch

diff --git a/obexd/plugins/phonebook-ebook.c b/obexd/plugins/phonebook-ebook.c
index f47d3fd..c5f681f 100644
--- a/obexd/plugins/phonebook-ebook.c
+++ b/obexd/plugins/phonebook-ebook.c
@@ -65,9 +65,9 @@ static void ebookpull_cb(EBook *book, EBookStatus status, GList *contacts,
 {
 	struct query_data *data = user_data;
 	GString *string = g_string_new("");
-	GList *l;
+	GList *l = g_list_nth(contacts, data->params->liststartoffset);
 
-	for (l = contacts; l; l = g_list_next(l)) {
+	for (; l; l = g_list_next(l)) {
 		EContact *contact;
 		EVCard *evcard;
 		gchar *vcard;