]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Tue, 12 Sep 2017 19:35:09 +0000 (15:35 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 12 Sep 2017 19:35:23 +0000 (15:35 -0400)
MagickCore/draw.c

index 632060dbda45178112a25ed521dcc7bb7db0d729..2c5a5e926b3f8fccb6be50518ffdede118f9e7ea 100644 (file)
@@ -2643,7 +2643,7 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info,
                     GetNextToken(r,&r,extent,token);
                 }
                 graphic_context[n]->dash_pattern=(double *)
-                  AcquireQuantumMemory((size_t) (2UL*x+1UL),
+                  AcquireQuantumMemory((size_t) (2UL*x+2UL),
                   sizeof(*graphic_context[n]->dash_pattern));
                 if (graphic_context[n]->dash_pattern == (double *) NULL)
                   {