summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mga_dri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mga_dri.c b/src/mga_dri.c
index 4222d53..1fb818f 100644
--- a/src/mga_dri.c
+++ b/src/mga_dri.c
@@ -754,7 +754,7 @@ Bool MGADRIScreenInit( ScreenPtr pScreen )
pDRIInfo->SAREASize = SAREA_MAX;
- pMGADRI = (MGADRIPtr)calloc( sizeof(MGADRIRec), 1 );
+ pMGADRI = (MGADRIPtr)calloc( 1, sizeof(MGADRIRec) );
if ( !pMGADRI ) {
DRIDestroyInfoRec( pMga->pDRIInfo );
pMga->pDRIInfo = 0;
@@ -764,7 +764,7 @@ Bool MGADRIScreenInit( ScreenPtr pScreen )
}
pMGADRIServer = (MGADRIServerPrivatePtr)
- calloc( sizeof(MGADRIServerPrivateRec), 1 );
+ calloc( 1, sizeof(MGADRIServerPrivateRec) );
if ( !pMGADRIServer ) {
free( pMGADRI );
DRIDestroyInfoRec( pMga->pDRIInfo );