summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMarti Maria <marti.maria@littlecms.com>2020-10-01 18:06:34 +0200
committerMarti Maria <marti.maria@littlecms.com>2020-10-01 18:06:34 +0200
commit33848b63af5616527c8b395117d9d055954320ca (patch)
treeff77090ccfe05ff97c1ff168be907235a07d95e9 /utils
parentd387d03103911d20582f1d9548d89738c993c4b8 (diff)
downloadlcms2-33848b63af5616527c8b395117d9d055954320ca.tar.gz
cosmetic changes
to make codeQL happy
Diffstat (limited to 'utils')
-rw-r--r--utils/common/vprf.c2
-rw-r--r--utils/jpgicc/jpgicc.c4
-rw-r--r--utils/tificc/tificc.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/utils/common/vprf.c b/utils/common/vprf.c
index cba1ac4..7523f6f 100644
--- a/utils/common/vprf.c
+++ b/utils/common/vprf.c
@@ -254,7 +254,7 @@ cmsBool SaveMemoryBlock(const cmsUInt8Number* Buffer, cmsUInt32Number dwLen, con
}
if (fwrite(Buffer, 1, dwLen, out) != dwLen) {
- FatalError("Cannot write %ld bytes to %s", dwLen, Filename);
+ FatalError("Cannot write %ld bytes to %s", (long) dwLen, Filename);
return FALSE;
}
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) {
diff --git a/utils/tificc/tificc.c b/utils/tificc/tificc.c
index 3973bc3..4cf8ec8 100644
--- a/utils/tificc/tificc.c
+++ b/utils/tificc/tificc.c
@@ -684,7 +684,7 @@ void DoEmbedProfile(TIFF* Out, const char* ProfileFile)
EmbedLen = (cmsUInt32Number) fread(EmbedBuffer, 1, (size_t) size, f);
if (EmbedLen != (cmsUInt32Number) size)
- FatalError("Cannot read %ld bytes to %s", size, ProfileFile);
+ FatalError("Cannot read %ld bytes to %s", (long) size, ProfileFile);
fclose(f);
EmbedBuffer[EmbedLen] = 0;