diff options
author | Christian Persch <chpe@src.gnome.org> | 2009-02-15 13:51:25 (GMT) |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2009-02-15 13:51:25 (GMT) |
commit | 6d536b8815d57852153f260e9985f6d98effd9d1 (patch) | |
tree | 6ea5a1fb0a964ae52ccbc2e5d80eb22fd46fc702 | |
parent | 3997b15fc906d9ce0d7920f9f8e4af3b9404c4f0 (diff) |
Don't use more bytes from buffer than were read from the file.
* libdocument/ev-file-helpers.c: (get_mime_type_from_data): Don't use
more bytes from buffer than were read from the file.
svn path=/trunk/; revision=3437
-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); } |