mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 13:56:37 +02:00
core: fix infinite loop in display when the chat area is too small (issue #2053)
This commit is contained in:
@@ -10,6 +10,13 @@ This document lists all the changes for each version. +
|
||||
For a list of important changes that require manual actions, please look at release notes.
|
||||
|
||||
|
||||
[[v4.0.8]]
|
||||
== Version 4.0.8 (under dev)
|
||||
|
||||
Bug fixes::
|
||||
|
||||
* core: fix infinite loop in display when the chat area is too small (issue #2053)
|
||||
|
||||
[[v4.0.7]]
|
||||
== Version 4.0.7 (2023-12-03)
|
||||
|
||||
|
||||
@@ -643,6 +643,8 @@ gui_chat_display_word (struct t_gui_window *window,
|
||||
nick_offline);
|
||||
}
|
||||
ptr_data[pos_saved_char] = saved_char;
|
||||
if (pos_saved_char == 0)
|
||||
break;
|
||||
ptr_data += pos_saved_char;
|
||||
}
|
||||
else
|
||||
@@ -664,6 +666,8 @@ gui_chat_display_word (struct t_gui_window *window,
|
||||
apply_style_inactive,
|
||||
nick_offline);
|
||||
}
|
||||
if (!ptr_data[0])
|
||||
break;
|
||||
ptr_data += strlen (ptr_data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user