irssi/irssi-0.8.15-init-resize-crash-fix.patch
Jaroslav Škarvada ac1ea1677d Fixed crash that can occur if term is resized during irssi init
(init-resize-crash-fix patch)
  Resolves: rhbz#796457
2012-02-24 11:20:22 +01:00

14 lines
590 B
Diff

diff -up irssi-0.8.15/src/fe-text/irssi.c.old irssi-0.8.15/src/fe-text/irssi.c
diff -up irssi-0.8.15/src/fe-text/mainwindows.c.old irssi-0.8.15/src/fe-text/mainwindows.c
--- irssi-0.8.15/src/fe-text/mainwindows.c.old 2010-04-03 18:19:42.000000000 +0200
+++ irssi-0.8.15/src/fe-text/mainwindows.c 2012-02-24 10:47:51.215293213 +0100
@@ -355,7 +355,7 @@ static void mainwindows_resize_smaller(i
int space;
sorted = mainwindows_get_sorted(TRUE);
- for (;;) {
+ for (;sorted != NULL;) {
space = 0;
for (tmp = mainwindows; tmp != NULL; tmp = tmp->next) {
rec = tmp->data;