From 4875a15ca61358a1c95b156b2279fce092451278 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Wed, 19 Jan 2022 00:45:43 +0100 Subject: Update libNX_X11 to upstream's libX11-1.7.3.1-10-gd60ede78 --- nx-X11/lib/src/RdBitF.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nx-X11/lib/src/RdBitF.c') diff --git a/nx-X11/lib/src/RdBitF.c b/nx-X11/lib/src/RdBitF.c index 319a0ee0b..d34aafb24 100644 --- a/nx-X11/lib/src/RdBitF.c +++ b/nx-X11/lib/src/RdBitF.c @@ -49,7 +49,7 @@ from The Open Group. #include "Xutil.h" #include #include - +#include "reallocarray.h" #define MAX_SIZE 255 @@ -187,10 +187,10 @@ XReadBitmapFileData ( bytes_per_line = (ww+7)/8 + padding; - size = bytes_per_line * hh; - bits = Xmalloc (size); + bits = Xmallocarray (hh, bytes_per_line); if (!bits) RETURN (BitmapNoMemory); + size = bytes_per_line * hh; if (version10p) { unsigned char *ptr; -- cgit v1.2.3