aboutsummaryrefslogtreecommitdiff
path: root/libX11/src/GetRGBCMap.c
diff options
context:
space:
mode:
Diffstat (limited to 'libX11/src/GetRGBCMap.c')
-rw-r--r--libX11/src/GetRGBCMap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libX11/src/GetRGBCMap.c b/libX11/src/GetRGBCMap.c
index 9e227a263..2f0b752a8 100644
--- a/libX11/src/GetRGBCMap.c
+++ b/libX11/src/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;