diff options
author | Alexander Færøy <ahf@0x90.dk> | 2014-08-09 12:24:45 +0200 |
---|---|---|
committer | Alexander Færøy <ahf@0x90.dk> | 2014-08-09 12:24:45 +0200 |
commit | d40c0704f0bc5df3ac3b0ae7dcbfbf5f83a8f840 (patch) | |
tree | 21520e038d1faa2a3f22e21ac1e140d9ce6baa1f | |
parent | 2346d3b62fd4ce5211e57b67263c046e6ea6db59 (diff) | |
parent | 836d3868239d35c12016f45ce0e9f224fb2ba436 (diff) | |
download | irssi-d40c0704f0bc5df3ac3b0ae7dcbfbf5f83a8f840.zip |
Merge pull request #123 from ailin-nemui/terminfo-scroll-check-bounds
Add bounds check to array access in terminfo driver.
-rw-r--r-- | src/fe-text/term-terminfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c index b13426d1..29d3f7eb 100644 --- a/src/fe-text/term-terminfo.c +++ b/src/fe-text/term-terminfo.c @@ -293,7 +293,7 @@ void term_window_scroll(TERM_WINDOW *window, int count) term_move_reset(vcx, vcy); /* set the newly scrolled area dirty */ - for (y = 0; y < window->height; y++) + for (y = 0; (window->y+y) < term_height && y < window->height; y++) term_lines_empty[window->y+y] = FALSE; } |