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).
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user