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
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;