]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <mikayla-grace@urban-warrior.org>
Mon, 29 Apr 2019 22:47:08 +0000 (18:47 -0400)
committerCristy <mikayla-grace@urban-warrior.org>
Mon, 29 Apr 2019 22:47:08 +0000 (18:47 -0400)
MagickCore/cache.c

index bf42494aa81e86cf04629d260e41ac5a3b226878..f8ebd4a1731f38a6ed83f8b6c9d1db8accd1dcfa 100644 (file)
@@ -3061,7 +3061,7 @@ MagickPrivate const Quantum *GetVirtualPixelCacheNexus(const Image *image,
       q+=cache_info->number_channels*length;
       if ((r != (void *) NULL) && (s != (const void *) NULL))
         {
-          (void) memcpy(s,r,(size_t) length*sizeof(*r));
+          (void) memcpy(s,r,(size_t) length);
           s+=length*cache_info->metacontent_extent;
         }
     }