Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/libdocument/ev-file-helpers.c
diff options
context:
space:
mode:
authorChristian 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)
commit6d536b8815d57852153f260e9985f6d98effd9d1 (patch)
tree6ea5a1fb0a964ae52ccbc2e5d80eb22fd46fc702 /libdocument/ev-file-helpers.c
parent3997b15fc906d9ce0d7920f9f8e4af3b9404c4f0 (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
Diffstat (limited to 'libdocument/ev-file-helpers.c')
-rw-r--r--libdocument/ev-file-helpers.c2
1 files changed, 1 insertions, 1 deletions
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);
}