summaryrefslogtreecommitdiff
path: root/plugins/phonebook-ebook.c
diff options
context:
space:
mode:
authorMarcel Mol <marcel@mesa.nl>2010-07-27 21:04:26 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2010-08-02 22:43:58 +0300
commita16e7d98934b9ef1e3a6d9611bc37c89e8328c38 (patch)
tree221a6cf7549b88dae048e816466668dae3d01cd1 /plugins/phonebook-ebook.c
parentd7db316010f72691860e305eb47ff231fc75174c (diff)
downloadobexd-a16e7d98934b9ef1e3a6d9611bc37c89e8328c38.tar.gz
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.
Diffstat (limited to 'plugins/phonebook-ebook.c')
-rw-r--r--plugins/phonebook-ebook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/phonebook-ebook.c b/plugins/phonebook-ebook.c
index 2d5bec3..089b956 100644
--- a/plugins/phonebook-ebook.c
+++ b/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++) {