Allocate a colormap of the maximum colors when color reducing an image sequence
diff --git a/ChangeLog b/ChangeLog
index 20118fa..83019d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-04-25  7.0.10-9 Cristy  <quetzlzacatenango@image...>
+  * Release ImageMagick version 7.0.10-9, GIT revision 17...
+
+2020-04-25  7.0.10-9 Cristy  <quetzlzacatenango@image...>
+  * Allocate a colormap of the maximum colors when color reducing an image
+    sequence.
+
 2020-04-24  7.0.10-8 Cristy  <quetzlzacatenango@image...>
   * Release ImageMagick version 7.0.10-8, GIT revision 17175:481b85f:20200424.
 
diff --git a/MagickCore/quantize.c b/MagickCore/quantize.c
index 28422fe..cdbced2 100644
--- a/MagickCore/quantize.c
+++ b/MagickCore/quantize.c
@@ -513,7 +513,7 @@
   if (cube_info->quantize_info->colorspace != UndefinedColorspace)
     (void) TransformImageColorspace(image,cube_info->quantize_info->colorspace,
       exception);
-  if (AcquireImageColormap(image,cube_info->colors,exception) == MagickFalse)
+  if (AcquireImageColormap(image,cube_info->maximum_colors,exception) == MagickFalse)
     ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed",
       image->filename);
   image->colors=0;