diff options
Diffstat (limited to 'utils/jpgicc/jpgicc.c')
-rw-r--r-- | utils/jpgicc/jpgicc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/jpgicc/jpgicc.c b/utils/jpgicc/jpgicc.c index 123d6e0..2d6fc13 100644 --- a/utils/jpgicc/jpgicc.c +++ b/utils/jpgicc/jpgicc.c @@ -864,8 +864,8 @@ int DoTransform(cmsHTRANSFORM hXForm, int OutputColorSpace) if (EmbedProfile && cOutProf) DoEmbedProfile(cOutProf); - ScanLineIn = (JSAMPROW) malloc(Decompressor.output_width * Decompressor.num_components); - ScanLineOut = (JSAMPROW) malloc(Compressor.image_width * Compressor.num_components); + ScanLineIn = (JSAMPROW) malloc((size_t) Decompressor.output_width * Decompressor.num_components); + ScanLineOut = (JSAMPROW) malloc((size_t) Compressor.image_width * Compressor.num_components); while (Decompressor.output_scanline < Decompressor.output_height) { |