diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2005-07-09 21:19:11 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2005-07-09 21:19:11 +0000 |
commit | f90f661652e5fe0986eb804f8dff3eeffe0af820 (patch) | |
tree | 784fca11bf56b689479c2004266ebb14915de109 /src | |
parent | 8fced5b648b0666ca88221e37bc1131ab5c2072d (diff) |
Copy mode strings upon mode copy
Diffstat (limited to 'src')
-rw-r--r-- | src/i830_modes.c | 2 |
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); } } |