From 2e37a8a2bf849f721fcdbcd947bdfcc829382111 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Sat, 23 Nov 2002 03:38:19 +0000 Subject: [ roll forward Sean.Gao@sun.com's fix for #16870 from the 1.2 branch ] 2002-11-22 Chris Toshok [ roll forward Sean.Gao@sun.com's fix for #16870 from the 1.2 branch ] * backend/ebook/evolution-ldif-importer.c (getNextLDIFEntry): check for both LR and CRLF as empty line markers. svn path=/trunk/; revision=18899 --- addressbook/backend/ebook/evolution-ldif-importer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addressbook/backend/ebook') diff --git a/addressbook/backend/ebook/evolution-ldif-importer.c b/addressbook/backend/ebook/evolution-ldif-importer.c index 8ec5b631ab..e0a85e685c 100644 --- a/addressbook/backend/ebook/evolution-ldif-importer.c +++ b/addressbook/backend/ebook/evolution-ldif-importer.c @@ -304,7 +304,7 @@ getNextLDIFEntry( FILE *f ) while (!feof (f)) { if (!fgets (line, sizeof(line), f)) break; - if (line[0] == '\n') + if (line[0] == '\n' || (line[0] == '\r' && line[1] == '\n')) break; str = g_string_append (str, line); } -- cgit v1.2.3