summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/gdk-pixbuf-io.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-10-03 15:07:35 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-10-03 15:07:35 +0000
commit73a27a3cee2b2e3a4735b3639e305e95ece681c4 (patch)
treefa5a8acc0160c2a2ee5b1b4e095ebfbd226fd069 /gdk-pixbuf/gdk-pixbuf-io.c
parentef2c2326f04d5a0a86956ce18d9c15cd3ebf61c1 (diff)
downloadgdk-pixbuf-73a27a3cee2b2e3a4735b3639e305e95ece681c4.tar.gz
Use a 1k buffer for sniffing image formats, instead of 128 or 256 bytes.
2005-10-03 Matthias Clasen <mclasen@redhat.com> * gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file): * gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): * gdk-pixbuf-loader.c: Use a 1k buffer for sniffing image formats, instead of 128 or 256 bytes. (#317225, Sebastien Bacher, Dom Lachowicz)
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-io.c')
-rw-r--r--gdk-pixbuf/gdk-pixbuf-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c
index 56dfefe62..ea7894bfe 100644
--- a/gdk-pixbuf/gdk-pixbuf-io.c
+++ b/gdk-pixbuf/gdk-pixbuf-io.c
@@ -840,7 +840,7 @@ gdk_pixbuf_new_from_file (const char *filename,
GdkPixbuf *pixbuf;
int size;
FILE *f;
- guchar buffer[256];
+ guchar buffer[1024];
GdkPixbufModule *image_module;
gchar *display_name;