From 27da40a0c605fe8bd00ac45c2aba8d17ba86e8a2 Mon Sep 17 00:00:00 2001 From: "Martin T. H. Sandsmark" Date: Sun, 22 Jan 2017 18:20:54 +0100 Subject: [PATCH] Screen: Fix potential crash when ExtendedCharTable tries to clean --- src/Screen.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Screen.h b/src/Screen.h index aaa282eb..443d0ecf 100644 --- a/src/Screen.h +++ b/src/Screen.h @@ -580,7 +580,7 @@ public: QSet result; for (int i = 0; i < _lines; ++i) { const ImageLine& il = _screenLines[i]; - for (int j = 0; j < _columns; ++j) { + for (int j = 0; j < il.length(); ++j) { if (il[j].rendition & RE_EXTENDED_CHAR) { result << il[j].character; }