diff options
Diffstat (limited to 'deskutils/gnome-utils/files')
-rw-r--r-- | deskutils/gnome-utils/files/patch-logview_logrtns.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/deskutils/gnome-utils/files/patch-logview_logrtns.c b/deskutils/gnome-utils/files/patch-logview_logrtns.c index e435cd314..261888d5f 100644 --- a/deskutils/gnome-utils/files/patch-logview_logrtns.c +++ b/deskutils/gnome-utils/files/patch-logview_logrtns.c @@ -1,16 +1,5 @@ --- logview/logrtns.c.orig Sun Feb 20 13:03:24 2005 +++ logview/logrtns.c Sun Feb 20 13:27:46 2005 -@@ -217,6 +217,10 @@ OpenLogFile (char *filename) - return NULL; - } - -+ /* gnome_vfs_read_entire_file() does not return a NUL-terminated buffer. */ -+ buffer = g_realloc (buffer, size+1); -+ buffer[size] = '\0'; -+ - /* Alloc memory for log structure */ - tlog = g_new0 (Log, 1); - if (tlog == NULL) { @@ -230,6 +234,7 @@ OpenLogFile (char *filename) g_free (filename); |