From 8155bb609b124a40e5090bb66e0e178c6294fb76 Mon Sep 17 00:00:00 2001 From: Sushma Rai Date: Fri, 5 Aug 2005 07:54:40 +0000 Subject: Fix for the crash while importing ldif file with more than fifty entries. svn path=/trunk/; revision=29998 --- addressbook/importers/evolution-ldif-importer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'addressbook/importers') 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); -- cgit