Fix for Bob's DumpModeDecode size bug

This commit is contained in:
Joris Van Damme 2007-07-16 18:05:12 +00:00
parent 42bed3384e
commit 2167fa6349

View File

@ -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
@ -161,10 +161,10 @@ TIFFReadEncodedStrip(TIFF* tif, uint32 strip, void* buf, tmsize_t size)
stripsize=size;
if (!TIFFFillStrip(tif,strip))
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));
(*tif->tif_postdecode)(tif,buf,size);
return(size);
(*tif->tif_postdecode)(tif,buf,stripsize);
return(stripsize);
}
static tmsize_t