From f90f661652e5fe0986eb804f8dff3eeffe0af820 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Sat, 9 Jul 2005 21:19:11 +0000 Subject: Copy mode strings upon mode copy --- src/i830_modes.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); } } -- cgit v1.2.3