Fix TIFFErrorExt() formatting of size_t type for 32-bit compiles.

o
This commit is contained in:
Bob Friesenhahn 2018-11-02 07:34:22 -05:00
parent 99b10edde9
commit 90771bcd56

View File

@ -79,8 +79,8 @@ int TWebPDatasetWriter(const uint8_t* data, size_t data_size,
if ( (tif->tif_rawcc + (tmsize_t)data_size) > tif->tif_rawdatasize ) { if ( (tif->tif_rawcc + (tmsize_t)data_size) > tif->tif_rawdatasize ) {
TIFFErrorExt(tif->tif_clientdata, module, TIFFErrorExt(tif->tif_clientdata, module,
"Buffer too small by %lu bytes.", "Buffer too small by " TIFF_SIZE_FORMAT " bytes.",
tif->tif_rawcc + data_size - tif->tif_rawdatasize); (size_t) (tif->tif_rawcc + data_size - tif->tif_rawdatasize));
return 0; return 0;
} else { } else {
_TIFFmemcpy(tif->tif_rawcp, data, data_size); _TIFFmemcpy(tif->tif_rawcp, data, data_size);