diff options
Diffstat (limited to 'src/GCManager.c')
-rw-r--r-- | src/GCManager.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/GCManager.c b/src/GCManager.c index aa5bbba..1c1a2cd 100644 --- a/src/GCManager.c +++ b/src/GCManager.c @@ -250,10 +250,8 @@ XtAllocateGC(register Widget widget, if (!pd->pixmap_tab) { int n; - pd->pixmap_tab = - (Drawable **) - __XtMalloc((Cardinal) - ((unsigned) ScreenCount(dpy) * sizeof(Drawable *))); + pd->pixmap_tab = XtMallocArray((Cardinal) ScreenCount(dpy), + (Cardinal) sizeof(Drawable *)); for (n = 0; n < ScreenCount(dpy); n++) pd->pixmap_tab[n] = NULL; } |