Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > by-pkgid > b3c60ddc4ac93f8f85d9e8ba62281f30 > files > 12

gnome-utils-2.16.0-3mdv2007.0.src.rpm

Index: log_repaint.c
===================================================================
--- gnome-utils/logview/log_repaint.c	(révision 7330)
+++ gnome-utils/logview/log_repaint.c	(révision 7331)
@@ -183,7 +183,9 @@
    
    /* ctime returned string has "\n\0" causes statusbar display a invalid char */
    modified = ctime (&(log->stats->file_time));
-   index = strrchr (modified, '\n'); *index = '\0';
+   index = strrchr (modified, '\n');
+   if (index && *index != '\0')
+     *index = '\0';
    modified = g_strdup_printf (_("last update : %s"), modified);
    size = gnome_vfs_format_file_size_for_display (log->stats->file_size);
    statusbar_text = g_strdup_printf (_("%d lines (%s) - %s"), 
--- gnome-utils/logview/logrtns.c	(révision 7489)
+++ gnome-utils/logview/logrtns.c	(révision 7490)
@@ -252,7 +252,11 @@
            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)