From 40ffcc1594941a42bf7b61b6f4f169bd47e2ab08 Mon Sep 17 00:00:00 2001 From: Marcel Mol Date: Tue, 27 Jul 2010 21:04:26 +0200 Subject: [PATCH] obexd: Fix vcard filter setting The bits for VCARD version 2.1 and version 3.0 were wrong: in case of 2.1 the FN bit was on and for 3.0 it is off. The comment states that 3.0 needs FN while 2.1 does not. This patch fixes that. --- obexd/plugins/phonebook-ebook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/plugins/phonebook-ebook.c b/obexd/plugins/phonebook-ebook.c index 2d5bec3f9..089b956e7 100644 --- a/obexd/plugins/phonebook-ebook.c +++ b/obexd/plugins/phonebook-ebook.c @@ -107,7 +107,7 @@ static char *evcard_to_string(EVCard *evcard, unsigned int format, * Mandatory attributes for vCard 2.1 are VERSION ,N and TEL. * Mandatory attributes for vCard 3.0 are VERSION, N, FN and TEL */ - filter = format == EVC_FORMAT_VCARD_30 ? filter | 0x85: filter | 0x87; + filter = format == EVC_FORMAT_VCARD_30 ? filter | 0x87: filter | 0x85; evcard2 = e_vcard_new(); for (i = 0; i < 29; i++) { -- 2.47.3