diff options
Diffstat (limited to 'tools/tiff2rgba.c')
-rw-r--r-- | tools/tiff2rgba.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/tiff2rgba.c b/tools/tiff2rgba.c index e0dbcc45..e1495f14 100644 --- a/tools/tiff2rgba.c +++ b/tools/tiff2rgba.c @@ -411,7 +411,7 @@ cvt_whole_image( TIFF *in, TIFF *out ) } if (maxMalloc != 0 && (tmsize_t)pixel_count * (tmsize_t)sizeof(uint32_t) > maxMalloc) { TIFFError(TIFFFileName(in), - "Raster size %zu over memory limit (%" TIFF_SSIZE_FORMAT "), try -b option.", + "Raster size %"TIFF_SIZE_FORMAT" over memory limit (%" TIFF_SSIZE_FORMAT "), try -b option.", pixel_count * sizeof(uint32_t), maxMalloc); return 0; } @@ -421,7 +421,7 @@ cvt_whole_image( TIFF *in, TIFF *out ) raster = (uint32_t*)_TIFFCheckMalloc(in, pixel_count, sizeof(uint32_t), "raster buffer"); if (raster == 0) { - TIFFError(TIFFFileName(in), "Failed to allocate buffer (%zu elements of %zu each)", + TIFFError(TIFFFileName(in), "Failed to allocate buffer (%"TIFF_SIZE_FORMAT" elements of %"TIFF_SIZE_FORMAT" each)", pixel_count, sizeof(uint32_t)); return (0); } |