summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/i830_modes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/i830_modes.c b/src/i830_modes.c
index 97c364bc..587c2543 100644
--- a/src/i830_modes.c
+++ b/src/i830_modes.c
@@ -407,6 +407,7 @@ CheckMode(ScrnInfoPtr pScrn, vbeInfoPtr pVbe, VbeInfoBlock *vbe, int id,
if (p) {
pMode = xnfcalloc(sizeof(DisplayModeRec), 1);
memcpy((char*)pMode,(char*)p,sizeof(DisplayModeRec));
+ pMode->name = xnfstrdup(p->name);
}
}
@@ -438,6 +439,7 @@ CheckMode(ScrnInfoPtr pScrn, vbeInfoPtr pVbe, VbeInfoBlock *vbe, int id,
if (newMode) {
pMode = xnfcalloc(sizeof(DisplayModeRec), 1);
memcpy((char*)pMode,(char*)newMode,sizeof(DisplayModeRec));
+ pMode->name = xnfstrdup(newMode->name);
}
}