From 9a2799300860f0f690f28433288ff9397539f20a Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 4 Feb 2018 12:37:17 -0500 Subject: [PATCH] ... --- MagickCore/xwindow.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -- 2.40.0