evince r3437 - in trunk: . libdocument
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: evince r3437 - in trunk: . libdocument
- Date: Sun, 15 Feb 2009 13:51:25 +0000 (UTC)
Author: chpe
Date: Sun Feb 15 13:51:25 2009
New Revision: 3437
URL: http://svn.gnome.org/viewvc/evince?rev=3437&view=rev
Log:
* libdocument/ev-file-helpers.c: (get_mime_type_from_data): Don't use
more bytes from buffer than were read from the file.
Modified:
trunk/ChangeLog
trunk/libdocument/ev-file-helpers.c
Modified: trunk/libdocument/ev-file-helpers.c
==============================================================================
--- trunk/libdocument/ev-file-helpers.c (original)
+++ trunk/libdocument/ev-file-helpers.c Sun Feb 15 13:51:25 2009
@@ -258,7 +258,7 @@
return NULL;
return g_content_type_guess (NULL, /* no filename */
- buffer, 1024,
+ buffer, size_read,
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]