[mutter] MonitorXrandr: Fix segv when accessing possible_clones
- From: Olav Vitters <ovitters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] MonitorXrandr: Fix segv when accessing possible_clones
- Date: Thu, 22 Aug 2013 20:10:14 +0000 (UTC)
commit 74764199404e4b3b9a176e4ee716a16503e5691d
Author: Colin Guthrie <colin mageia org>
Date: Thu Aug 22 17:39:56 2013 +0100
MonitorXrandr: Fix segv when accessing possible_clones
This code requires a double pass and the segv happens later
when trying to iterate over the array.
https://bugzilla.gnome.org/show_bug.cgi?id=706598
src/core/monitor-xrandr.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/monitor-xrandr.c b/src/core/monitor-xrandr.c
index 1a66c13..0a7dc0b 100644
--- a/src/core/monitor-xrandr.c
+++ b/src/core/monitor-xrandr.c
@@ -532,7 +532,7 @@ meta_monitor_manager_xrandr_read_current (MetaMonitorManager *manager)
*/
for (j = 0; j < (unsigned)output->nclone; j++)
{
- meta_output->possible_clones = GINT_TO_POINTER (output->clones[j]);
+ meta_output->possible_clones[j] = GINT_TO_POINTER (output->clones[j]);
}
meta_output->is_primary = ((XID)meta_output->output_id == primary_output);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]