diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | libdocument/ev-file-helpers.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2009-02-13 Christian Persch <chpe@gnome.org> + + * libdocument/ev-file-helpers.c: (get_mime_type_from_data): Don't use + more bytes from buffer than were read from the file. + 2009-02-15 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * properties/ev-properties-view.c (set_property): diff --git a/libdocument/ev-file-helpers.c b/libdocument/ev-file-helpers.c index 28f01b1..0b82536 100644 --- a/libdocument/ev-file-helpers.c +++ b/libdocument/ev-file-helpers.c @@ -258,7 +258,7 @@ get_mime_type_from_data (const gchar *uri, GError **error) return NULL; return g_content_type_guess (NULL, /* no filename */ - buffer, 1024, + buffer, size_read, NULL); } |