Fix seed color parser
diff --git a/MagickCore/quantize.c b/MagickCore/quantize.c
index c7d40c8..7497e41 100644
--- a/MagickCore/quantize.c
+++ b/MagickCore/quantize.c
@@ -2423,7 +2423,7 @@
     ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed",
       image->filename);
   (void) memcpy(kmeans_colormap,image->colormap,image->colors*
-    sizeof(*image->colormap));
+    sizeof(*kmeans_colormap));
   colors=GetImageArtifact(image,"kmeans:seed-colors");
   if (colors == (const char *) NULL)
     {
@@ -2468,7 +2468,10 @@
         status=QueryColorCompliance(color,AllCompliance,kmeans_colormap+n,
           exception);
         if (*q == '\0')
-          break;
+          {
+            n++;
+            break;
+          }
         p=q+1;
       }
       if (n < (ssize_t) image->colors)