summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/screen.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7e59f53..bf46ce6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5629,3 +5629,8 @@ borderless with no override_redirect (which may come back some day as
a separate option if there's a need) based on advice from raster and
kwo.
----------------------------------------------------------------------
+Sun Oct 25 14:07:07 2009 Michael Jennings (mej)
+
+Fix off-by-one error that was causing crashes with visual bell. Found
+by d_willsc@cojobo.bonn.de.
+----------------------------------------------------------------------
diff --git a/src/screen.c b/src/screen.c
index 0b1b5a8..6a6c579 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -1329,7 +1329,7 @@ scr_rvideo_mode(int mode)
maxlines = TermWin.saveLines + TERM_WINDOW_GET_REPORTED_ROWS();
for (i = TermWin.saveLines; i < maxlines; i++)
- for (j = 0; j < TERM_WINDOW_GET_REPORTED_COLS() + 1; j++)
+ for (j = 0; j < TERM_WINDOW_GET_REPORTED_COLS(); j++)
screen.rend[i][j] ^= RS_RVid;
scr_refresh(SLOW_REFRESH);
}