Blame SOURCES/tigervnc-fix-typo-in-mirror-monitor-detection.patch

a268a7
From 2daf4126882f82b6e392dfbae87205dbdc559c3d Mon Sep 17 00:00:00 2001
a268a7
From: Pierre Ossman <ossman@cendio.se>
a268a7
Date: Thu, 23 Dec 2021 15:58:00 +0100
a268a7
Subject: [PATCH] Fix typo in mirror monitor detection
a268a7
a268a7
Bug introduced in fb561eb but still somehow passed manual testing.
a268a7
Resulted in some stray reads off the end of the stack, which were
a268a7
hopefully harmless.
a268a7
---
a268a7
 vncviewer/MonitorIndicesParameter.cxx | 8 ++++----
a268a7
 1 file changed, 4 insertions(+), 4 deletions(-)
a268a7
a268a7
diff --git a/vncviewer/MonitorIndicesParameter.cxx b/vncviewer/MonitorIndicesParameter.cxx
a268a7
index 5130831cb..4ac74dd1a 100644
a268a7
--- a/vncviewer/MonitorIndicesParameter.cxx
a268a7
+++ b/vncviewer/MonitorIndicesParameter.cxx
a268a7
@@ -211,13 +211,13 @@ std::vector<MonitorIndicesParameter::Monitor> MonitorIndicesParameter::fetchMoni
a268a7
         // Only keep a single entry for mirrored screens
a268a7
         match = false;
a268a7
         for (int j = 0; j < ((int) monitors.size()); j++) {
a268a7
-            if (monitors[i].x != monitor.x)
a268a7
+            if (monitors[j].x != monitor.x)
a268a7
                 continue;
a268a7
-            if (monitors[i].y != monitor.y)
a268a7
+            if (monitors[j].y != monitor.y)
a268a7
                 continue;
a268a7
-            if (monitors[i].w != monitor.w)
a268a7
+            if (monitors[j].w != monitor.w)
a268a7
                 continue;
a268a7
-            if (monitors[i].h != monitor.h)
a268a7
+            if (monitors[j].h != monitor.h)
a268a7
                 continue;
a268a7
a268a7
             match = true;