diff options
author | Iain Holmes <iain@src.gnome.org> | 2001-09-13 05:43:29 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2001-09-13 05:43:29 +0800 |
commit | d4adafd58910bb0b87977c9fb0fe77d1f78229af (patch) | |
tree | 0a527b07fbc8b44b94a4454201038892b03517f3 /addressbook/backend | |
parent | c8eb36beb8a53967ad5979392fc86e91d384a692 (diff) | |
download | gsoc2013-evolution-d4adafd58910bb0b87977c9fb0fe77d1f78229af.tar gsoc2013-evolution-d4adafd58910bb0b87977c9fb0fe77d1f78229af.tar.gz gsoc2013-evolution-d4adafd58910bb0b87977c9fb0fe77d1f78229af.tar.bz2 gsoc2013-evolution-d4adafd58910bb0b87977c9fb0fe77d1f78229af.tar.lz gsoc2013-evolution-d4adafd58910bb0b87977c9fb0fe77d1f78229af.tar.xz gsoc2013-evolution-d4adafd58910bb0b87977c9fb0fe77d1f78229af.tar.zst gsoc2013-evolution-d4adafd58910bb0b87977c9fb0fe77d1f78229af.zip |
Fix vcard importing
svn path=/trunk/; revision=12784
Diffstat (limited to 'addressbook/backend')
-rw-r--r-- | addressbook/backend/ebook/evolution-vcard-importer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addressbook/backend/ebook/evolution-vcard-importer.c b/addressbook/backend/ebook/evolution-vcard-importer.c index 246c5ecb6e..e32593b4fb 100644 --- a/addressbook/backend/ebook/evolution-vcard-importer.c +++ b/addressbook/backend/ebook/evolution-vcard-importer.c @@ -133,16 +133,18 @@ check_file_is_vcard (const char *filename) handle = fopen (filename, "r"); if (handle == NULL) { + g_print ("\n"); return FALSE; } fgets (line, 4096, handle); if (line == NULL) { fclose (handle); + g_print ("\n"); return FALSE; } - if (strcmp (line, "BEGIN:VCARD") == 0) { + if (strncmp (line, "BEGIN:VCARD", 11) == 0) { result = TRUE; } else { result = FALSE; |