From: cristy Date: Sat, 24 May 2014 23:20:13 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2293 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2fe1370965d8343a96b377eea07bdaf9899d8d21;p=imagemagick --- diff --git a/MagickCore/cache.c b/MagickCore/cache.c index 204f129f0..36d39b4a3 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -601,7 +601,8 @@ static MagickBooleanType ClonePixelCacheRepository( clone_nexus[id],exception); if (pixels == (Quantum *) NULL) continue; - (void) ResetMagickMemory(clone_nexus[id]->pixels,0,clone_nexus[id]->length); + (void) ResetMagickMemory(clone_nexus[id]->pixels,0,(size_t) + clone_nexus[id]->length); if (optimize != MagickFalse) (void) memcpy(clone_nexus[id]->pixels,cache_nexus[id]->pixels,length* sizeof(Quantum));