diff options
Diffstat (limited to 'nx-X11/programs/Xserver/mi/mibank.c')
-rw-r--r-- | nx-X11/programs/Xserver/mi/mibank.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/mi/mibank.c b/nx-X11/programs/Xserver/mi/mibank.c index 754b0916f..a651c021e 100644 --- a/nx-X11/programs/Xserver/mi/mibank.c +++ b/nx-X11/programs/Xserver/mi/mibank.c @@ -2243,11 +2243,11 @@ miInitializeBanking( (sizeof(miBankGCRec) - sizeof(RegionPtr)))) return FALSE; - if (!(pScreenPriv = (miBankScreenPtr)Xcalloc(sizeof(miBankScreenRec)))) + if (!(pScreenPriv = (miBankScreenPtr)calloc(1, sizeof(miBankScreenRec)))) return FALSE; if (!(pScreenPriv->pBanks = /* Allocate and clear */ - (RegionPtr *)Xcalloc(nBanks * sizeof(RegionPtr)))) + (RegionPtr *)calloc(1, nBanks * sizeof(RegionPtr)))) { free(pScreenPriv); return FALSE; |