irssi/irssi-0.8.15-init-resize-crash-fix.patch

14 lines
590 B
Diff
Raw Normal View History

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;