From 14e16da54c526e5247d08c5184007446028283ba Mon Sep 17 00:00:00 2001 From: Marcel Mol Date: Thu, 12 Aug 2010 12:20:46 +0200 Subject: [PATCH] obexd: ebook backend: separate concatenated vcards with \r\n. The END:VCARD is not ended with \r\n for single vcards. In a phonebook pull request vcards are concatenated as one big blob. Carkits seem to choke on the fact that an END:VCARD is directly followed by BEGIN:VCARD without \r\n separation. (as observed by many n900 users). --- obexd/plugins/phonebook-ebook.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/obexd/plugins/phonebook-ebook.c b/obexd/plugins/phonebook-ebook.c index ad40be3d8..da68ac080 100644 --- a/obexd/plugins/phonebook-ebook.c +++ b/obexd/plugins/phonebook-ebook.c @@ -175,8 +175,11 @@ static void ebookpull_cb(EBook *book, EBookStatus estatus, GList *contacts, data->params->filter); string = g_string_append(string, vcard); + string = g_string_append(string, "\r\n"); g_free(vcard); } + DBG("collected %d vcards", count); + done: data->cb(string->str, string->len, count, 0, data->user_data); -- 2.47.3