diff options
author | Michael Jennings <mej@kainx.org> | 2009-10-25 21:07:43 +0000 |
---|---|---|
committer | Michael Jennings <mej@kainx.org> | 2009-10-25 21:07:43 +0000 |
commit | 10842b025d59a0b537364bcc9e7b21c61c6abb1d (patch) | |
tree | 6fa73ea425a1bfafcba8f85f6fb4996f09889d94 | |
parent | 7dea24910a5fe18a25c4effe512e379d8a1b12f8 (diff) | |
download | eterm-10842b025d59a0b537364bcc9e7b21c61c6abb1d.tar.gz |
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.
----------------------------------------------------------------------
SVN revision: 43285
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/screen.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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); } |