Fix for Bob's DumpModeDecode size bug
This commit is contained in:
parent
42bed3384e
commit
2167fa6349
@ -1,4 +1,4 @@
|
|||||||
/* $Id: tif_read.c,v 1.24 2007-06-27 16:09:58 joris Exp $ */
|
/* $Id: tif_read.c,v 1.25 2007-07-16 18:05:12 joris Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988-1997 Sam Leffler
|
* Copyright (c) 1988-1997 Sam Leffler
|
||||||
@ -161,10 +161,10 @@ TIFFReadEncodedStrip(TIFF* tif, uint32 strip, void* buf, tmsize_t size)
|
|||||||
stripsize=size;
|
stripsize=size;
|
||||||
if (!TIFFFillStrip(tif,strip))
|
if (!TIFFFillStrip(tif,strip))
|
||||||
return((tmsize_t)(-1));
|
return((tmsize_t)(-1));
|
||||||
if ((*tif->tif_decodestrip)(tif,buf,size,plane)<=0)
|
if ((*tif->tif_decodestrip)(tif,buf,stripsize,plane)<=0)
|
||||||
return((tmsize_t)(-1));
|
return((tmsize_t)(-1));
|
||||||
(*tif->tif_postdecode)(tif,buf,size);
|
(*tif->tif_postdecode)(tif,buf,stripsize);
|
||||||
return(size);
|
return(stripsize);
|
||||||
}
|
}
|
||||||
|
|
||||||
static tmsize_t
|
static tmsize_t
|
||||||
|
Loading…
Reference in New Issue
Block a user