aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/importers
diff options
context:
space:
mode:
authorSushma Rai <rsushma@src.gnome.org>2005-08-05 15:54:40 +0800
committerSushma Rai <rsushma@src.gnome.org>2005-08-05 15:54:40 +0800
commit8155bb609b124a40e5090bb66e0e178c6294fb76 (patch)
tree0a9ee0574559fb2168126a5842f2fd023d0fde2e /addressbook/importers
parent44f24cdf5a76bd8b6288cfa94e275453565c92f0 (diff)
downloadgsoc2013-evolution-8155bb609b124a40e5090bb66e0e178c6294fb76.tar.gz
gsoc2013-evolution-8155bb609b124a40e5090bb66e0e178c6294fb76.tar.zst
gsoc2013-evolution-8155bb609b124a40e5090bb66e0e178c6294fb76.zip
Fix for the crash while importing ldif file with more than fifty entries.
svn path=/trunk/; revision=29998
Diffstat (limited to 'addressbook/importers')
-rw-r--r--addressbook/importers/evolution-ldif-importer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/addressbook/importers/evolution-ldif-importer.c b/addressbook/importers/evolution-ldif-importer.c
index b989fb5385..4d36ddcd63 100644
--- a/addressbook/importers/evolution-ldif-importer.c
+++ b/addressbook/importers/evolution-ldif-importer.c
@@ -618,7 +618,8 @@ ldif_import(EImport *ei, EImportTarget *target, EImportImporter *im)
gci->target = target;
gci->book = book;
gci->file = file;
- gci->size = fseek(file, 0, SEEK_END);
+ fseek(file, 0, SEEK_END);
+ gci->size = ftell(file);
fseek(file, 0, SEEK_SET);
gci->dn_contact_hash = g_hash_table_new(g_str_hash, g_str_equal);