From 3706233c8dfd5841022f59a9cc5a2d9fcac17b71 Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Thu, 1 Sep 2016 17:38:04 +0000 Subject: [PATCH] #1074 Correction to r4457 to fix msvc build-breaker. --- src/jpgimage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jpgimage.cpp b/src/jpgimage.cpp index e1c4c3b5..18e06864 100644 --- a/src/jpgimage.cpp +++ b/src/jpgimage.cpp @@ -1110,7 +1110,7 @@ namespace Exiv2 { pad[1] = chunks; pad[2] = 0; pad[3] = 0; - outIo.write((const byte *) iccId_, ::strlen(iccId_) + 1); + outIo.write((const byte *) iccId_,(long) ::strlen(iccId_) + 1); outIo.write((const byte *) pad, sizeof(pad)); if (outIo.write(iccProfile_.pData_+ (chunk*chunk_size), bytes) != bytes) throw Error(21);