Index: ChangeLog
===================================================================
--- ChangeLog	(revision 7488)
+++ ChangeLog	(working copy)
@@ -1,3 +1,7 @@
+2007-04-14  Jan Arne Petersen  <jap@gnome.org>
+
+	* logrtns.c: (log_read_dates): Add check for i < n-1. (#364106)
+
 2007-01-22  Emmanuele Bassi  <ebassi@gnome.org>
 
 	* log_repaint.c: Fix message. (#399544, Stephane Raimbault)
Index: logrtns.c
===================================================================
--- logrtns.c	(revision 7488)
+++ logrtns.c	(working copy)
@@ -252,7 +252,11 @@ log_read_dates (gchar **buffer_lines, ti
            i++;
            date_string = string_get_date_string (buffer_lines[i]);
            if (date_string == NULL)
-             continue;
+             if (i==n-1) {
+               done = TRUE;
+               break;
+             } else
+               continue;
            newdate = string_get_date (buffer_lines[i]);
            
            if (newdate == NULL && i==n-1)
