diff options
Diffstat (limited to 'src/atidri.c')
-rw-r--r-- | src/atidri.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/atidri.c b/src/atidri.c index b6efe66..35cbb99 100644 --- a/src/atidri.c +++ b/src/atidri.c @@ -1063,7 +1063,7 @@ Bool ATIDRIScreenInit( ScreenPtr pScreen ) (unsigned)(sizeof(XF86DRISAREARec) + sizeof(ATISAREAPrivRec)) ); pDRIInfo->SAREASize = SAREA_MAX; - pATIDRI = (ATIDRIPtr) xnfcalloc( sizeof(ATIDRIRec), 1 ); + pATIDRI = (ATIDRIPtr) XNFcallocarray( sizeof(ATIDRIRec), 1 ); if ( !pATIDRI ) { DRIDestroyInfoRec( pATI->pDRIInfo ); pATI->pDRIInfo = NULL; @@ -1072,7 +1072,7 @@ Bool ATIDRIScreenInit( ScreenPtr pScreen ) return FALSE; } pATIDRIServer = (ATIDRIServerInfoPtr) - xnfcalloc( sizeof(ATIDRIServerInfoRec), 1 ); + XNFcallocarray( sizeof(ATIDRIServerInfoRec), 1 ); if ( !pATIDRIServer ) { free( pATIDRI ); DRIDestroyInfoRec( pATI->pDRIInfo ); |