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/GetRGBCMap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nx-X11/lib/src/GetRGBCMap.c') diff --git a/nx-X11/lib/src/GetRGBCMap.c b/nx-X11/lib/src/GetRGBCMap.c index 746b53fbf..1e04f1612 100644 --- a/nx-X11/lib/src/GetRGBCMap.c +++ b/nx-X11/lib/src/GetRGBCMap.c @@ -33,6 +33,7 @@ from The Open Group. #include #include #include "Xatomtype.h" +#include "reallocarray.h" #include Status XGetRGBColormaps ( @@ -99,7 +100,7 @@ Status XGetRGBColormaps ( /* * allocate array */ - cmaps = Xmalloc (ncmaps * sizeof (XStandardColormap)); + cmaps = Xmallocarray (ncmaps, sizeof (XStandardColormap)); if (!cmaps) { Xfree (data); return False; -- cgit v1.2.3