From 661b698b0ddd6d761761df6dabf24272f29a3763 Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Fri, 18 Feb 2011 22:15:40 +0000 Subject: [PATCH] Move _TIFFFillStriles() call down to avoid being ahead of variable declaration. --- libtiff/tif_read.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libtiff/tif_read.c b/libtiff/tif_read.c index 10e5a247..70ae7cc9 100644 --- a/libtiff/tif_read.c +++ b/libtiff/tif_read.c @@ -1,4 +1,4 @@ -/* $Id: tif_read.c,v 1.34 2011-02-18 20:53:04 fwarmerdam Exp $ */ +/* $Id: tif_read.c,v 1.35 2011-02-18 22:15:40 fwarmerdam Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -50,7 +50,8 @@ TIFFFillStripPartial( TIFF *tif, int strip, tmsize_t read_ahead, int restart ) uint64 unused_data; uint64 read_offset; tmsize_t cc, to_read; - + tmsize_t bytecountm; + _TIFFFillStriles( tif ); /* @@ -58,9 +59,8 @@ TIFFFillStripPartial( TIFF *tif, int strip, tmsize_t read_ahead, int restart ) * strip coming from file (perhaps should set upper * bound on the size of a buffer we'll use?). */ - tmsize_t bytecountm; + bytecountm=(tmsize_t) td->td_stripbytecount[strip]; - if (read_ahead*2 > tif->tif_rawdatasize) { assert( restart );