aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-09-13 05:43:29 +0800
committerIain Holmes <iain@src.gnome.org>2001-09-13 05:43:29 +0800
commitd4adafd58910bb0b87977c9fb0fe77d1f78229af (patch)
tree0a527b07fbc8b44b94a4454201038892b03517f3 /addressbook
parentc8eb36beb8a53967ad5979392fc86e91d384a692 (diff)
downloadgsoc2013-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')
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/backend/ebook/evolution-vcard-importer.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index fbac5ee6d9..3e264f66e4 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-12 Iain Holmes <iain@ximian.com>
+
+ * backends/ebook/evolution-vcard-importer.c (check_file_is_vcard):
+ Fix the check.
+
2001-09-12 Larry Ewing <lewing@ximian.com>
* backend/ebook/e-destination.c: free the values that are being
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;