1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 13:46:45 +02:00

fix possible buffer overflow

This commit is contained in:
Jfreegman
2014-06-01 12:54:45 -04:00
parent d65d0a08aa
commit 848b4e9a4c
2 changed files with 10 additions and 12 deletions

View File

@ -435,10 +435,8 @@ void refresh_inactive_windows(void)
for (i = 0; i < MAX_WINDOWS_NUM; ++i) {
ToxWindow *a = &windows[i];
if (!a->active || a == active_window || a->is_prompt) /* if prompt doesn't have scroll mode */
continue;
line_info_print(a);
if (a->active && a != active_window && !a->is_prompt) /* if prompt doesn't have scroll mode */
line_info_print(a);
}
}