summaryrefslogtreecommitdiff
path: root/magick/describe.c
diff options
context:
space:
mode:
Diffstat (limited to 'magick/describe.c')
-rw-r--r--magick/describe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/magick/describe.c b/magick/describe.c
index 3061f28..d8ea664 100644
--- a/magick/describe.c
+++ b/magick/describe.c
@@ -731,8 +731,8 @@ MagickExport MagickPassFail DescribeImage(Image *image,FILE *file,
}
i++;
(void) fprintf(file," %.1024s:\n",tag);
- length=profile[i++] << 8;
- length|=profile[i++];
+ length=(size_t) profile[i++] << 8;
+ length|=(size_t) profile[i++];
length=Min(length,profile_length-i);
text=MagickAllocateMemory(char *,length+1);
if (text != (char *) NULL)