mirror of
https://github.com/irssi/irssi.git
synced 2025-04-26 04:51:11 -05: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:
commit
d40c0704f0
@ -293,7 +293,7 @@ void term_window_scroll(TERM_WINDOW *window, int count)
|
|||||||
term_move_reset(vcx, vcy);
|
term_move_reset(vcx, vcy);
|
||||||
|
|
||||||
/* set the newly scrolled area dirty */
|
/* 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;
|
term_lines_empty[window->y+y] = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user