aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/GetRGBCMap.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/GetRGBCMap.c')
-rw-r--r--nx-X11/lib/X11/GetRGBCMap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nx-X11/lib/X11/GetRGBCMap.c b/nx-X11/lib/X11/GetRGBCMap.c
index b58468bab..c4eff5602 100644
--- a/nx-X11/lib/X11/GetRGBCMap.c
+++ b/nx-X11/lib/X11/GetRGBCMap.c
@@ -99,8 +99,7 @@ Status XGetRGBColormaps (
/*
* allocate array
*/
- cmaps = (XStandardColormap *) Xmalloc (ncmaps *
- sizeof (XStandardColormap));
+ cmaps = Xmalloc (ncmaps * sizeof (XStandardColormap));
if (!cmaps) {
if (data) Xfree ((char *) data);
return False;