From 9c06bc0aa330b7bd8799618ad5382ee74ca61f18 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 28 Oct 2017 14:20:46 -0400 Subject: [PATCH] ... --- coders/png.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coders/png.c b/coders/png.c index 9d95b0719..6609030f0 100644 --- a/coders/png.c +++ b/coders/png.c @@ -4475,7 +4475,7 @@ static Image *ReadOneJNGImage(MngInfo *mng_info, type[0]='\0'; (void) ConcatenateMagickString(type,"errr",MagickPathExtent); - length=ReadBlobMSBLong(image); + length=(size_t) ReadBlobMSBLong(image); count=(unsigned int) ReadBlob(image,4,(unsigned char *) type); if (logging != MagickFalse) @@ -5380,7 +5380,7 @@ static Image *ReadOneMNGImage(MngInfo* mng_info, const ImageInfo *image_info, */ type[0]='\0'; (void) ConcatenateMagickString(type,"errr",MagickPathExtent); - length=ReadBlobMSBLong(image); + length=(size_t) ReadBlobMSBLong(image); count=(size_t) ReadBlob(image,4,(unsigned char *) type); if (logging != MagickFalse) -- 2.40.0