Diff between 2135970779429089e1569f8d0f0098e6985835a3 and c6d258ba8678391872befad186dfa7eb52c571bd

Changed Files

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

Full Patch

diff --git a/obexd/plugins/phonebook-ebook.c b/obexd/plugins/phonebook-ebook.c
index c5f681f..528adf3 100644
--- a/obexd/plugins/phonebook-ebook.c
+++ b/obexd/plugins/phonebook-ebook.c
@@ -66,8 +66,11 @@ static void ebookpull_cb(EBook *book, EBookStatus status, GList *contacts,
 	struct query_data *data = user_data;
 	GString *string = g_string_new("");
 	GList *l = g_list_nth(contacts, data->params->liststartoffset);
+	guint count = 0, maxcount = data->params->maxlistcount;
 
-	for (; l; l = g_list_next(l)) {
+	/* FIXME: Missing 0.vcf */
+
+	for (; l && count < maxcount; l = g_list_next(l), count++) {
 		EContact *contact;
 		EVCard *evcard;
 		gchar *vcard;