diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-09-20 21:24:19 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-09-20 21:24:19 +0000 |
commit | 405c3b090f5bf6ba0007327b50e20439095568fd (patch) | |
tree | 16e7f1c84db127c11cda3b3b645a03dd76411e9f /gdk-pixbuf/io-tiff.c | |
parent | 0989d8ed833827100de59d6adb53795a708873c2 (diff) | |
download | gtk+-405c3b090f5bf6ba0007327b50e20439095568fd.tar.gz |
On OSF, apparently fseek() works in some on-demand way, so the fseek
Thu Sep 20 17:22:48 2001 Owen Taylor <otaylor@redhat.com>
* io-tiff.c (gdk_pixbuf__tiff_image_load): On OSF, apparently fseek()
works in some on-demand way, so the fseek gdk_pixbuf_new_from_file() doesn't
work here since we are using the raw file descriptor. So, we call lseek()
on the fileno(f) before using it. (#60840).
Diffstat (limited to 'gdk-pixbuf/io-tiff.c')
-rw-r--r-- | gdk-pixbuf/io-tiff.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdk-pixbuf/io-tiff.c b/gdk-pixbuf/io-tiff.c index d8b799344b..874a8a73d0 100644 --- a/gdk-pixbuf/io-tiff.c +++ b/gdk-pixbuf/io-tiff.c @@ -255,6 +255,13 @@ gdk_pixbuf__tiff_image_load (FILE *f, GError **error) tiff_push_handlers (); fd = fileno (f); + + /* On OSF, apparently fseek() works in some on-demand way, so + * the fseek gdk_pixbuf_new_from_file() doesn't work here + * since we are using the raw file descriptor. So, we call lseek() on the fd + * before using it. (#60840) + */ + lseek (fd, 0, SEEK_SET); tiff = TIFFFdOpen (fd, "libpixbuf-tiff", "r"); if (!tiff || global_error) { |