1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Merge pull request #123 from ailin-nemui/terminfo-scroll-check-bounds

Add bounds check to array access in terminfo driver.
This commit is contained in:
Alexander Færøy 2014-08-09 12:24:45 +02:00
commit d40c0704f0

View File

@ -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;
}