diff options
author | Martin-Éric Racine <martin-eric.racine@iki.fi> | 2011-03-14 10:50:18 +0200 |
---|---|---|
committer | Martin-Éric Racine <martin-eric.racine@iki.fi> | 2011-03-14 10:50:18 +0200 |
commit | 1a658ae0d991d38956466a0174dd9de543d9cd2d (patch) | |
tree | ae5ce313cbb33d33e0a07826e59d101551934a9c | |
parent | 6809053ef7c935fbfcf8ccd19dd3851ebf850fb9 (diff) |
Fixed a missing xrealloc
-rw-r--r-- | src/nsc_gx2_dga.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nsc_gx2_dga.c b/src/nsc_gx2_dga.c index 23c70ef..581d1a3 100644 --- a/src/nsc_gx2_dga.c +++ b/src/nsc_gx2_dga.c @@ -218,11 +218,11 @@ GX2DGAInit(ScreenPtr pScreen) /* memory is allocated for dga to *setup the viewport and mode parameters */ - newmodes = xrealloc(modes, (num + 2) * sizeof(DGAModeRec)); + newmodes = realloc(modes, (num + 2) * sizeof(DGAModeRec)); oneMore = TRUE; } else { /* one record is allocated here */ - newmodes = xrealloc(modes, (num + 1) * sizeof(DGAModeRec)); + newmodes = realloc(modes, (num + 1) * sizeof(DGAModeRec)); oneMore = FALSE; } if (!newmodes) { |