From: Cristy Date: Sun, 4 Feb 2018 17:37:17 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.7-23~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a2799300860f0f690f28433288ff9397539f20a;p=imagemagick ... --- diff --git a/MagickCore/xwindow.c b/MagickCore/xwindow.c index 81cfa33b2..30d8d1910 100644 --- a/MagickCore/xwindow.c +++ b/MagickCore/xwindow.c @@ -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)