]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 4 Feb 2018 17:37:17 +0000 (12:37 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sun, 4 Feb 2018 17:37:17 +0000 (12:37 -0500)
MagickCore/xwindow.c

index 81cfa33b201c1838c5016b79c8cc5505f63e7f7a..30d8d1910ce438a3d0727db001157d4c7082b7c5 100644 (file)
@@ -5645,19 +5645,19 @@ MagickPrivate MagickBooleanType XMakeImage(Display *display,
     {
       if (ximage->format == XYBitmap)
         {
-          ximage->data=(char *) AcquireMagickMemory((size_t)
+          ximage->data=(char *) AcquireQuantumMemory((size_t)
             ximage->bytes_per_line,(size_t) ximage->depth*ximage->height);
           if (ximage->data != (char *) NULL)
             (void) ResetMagickMemory(ximage->data,0,(size_t)
-              image->bytes_per_line*ximage->depth*ximage->height);
+              ximage->bytes_per_line*ximage->depth*ximage->height);
         }
       else
         {
-          ximage->data=(char *) AcquireMagickMemory((size_t)
+          ximage->data=(char *) AcquireQuantumMemory((size_t)
             ximage->bytes_per_line,(size_t) ximage->height);
           if (ximage->data != (char *) NULL)
             (void) ResetMagickMemory(ximage->data,0,(size_t)
-              image->bytes_per_line*ximage->height);
+              ximage->bytes_per_line*ximage->height);
         }
     }
   if (ximage->data == (char *) NULL)