diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-07-28 07:13:39 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-07-28 07:21:22 +0200 |
commit | 63f9289769c1aaee18863ac7558d633c40f1e345 (patch) | |
tree | fb8fd2d0058a66f3eef2040353f2a2632d6066ed /src/gui/gui-input.c | |
parent | 06fa5923e88b3f2f15de9d767bd592872f6092d7 (diff) | |
download | weechat-63f9289769c1aaee18863ac7558d633c40f1e345.zip |
core: fix input length and crash after delete of line (closes #1989)
Diffstat (limited to 'src/gui/gui-input.c')
-rw-r--r-- | src/gui/gui-input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui-input.c b/src/gui/gui-input.c index 29f89bf32..e4658b872 100644 --- a/src/gui/gui-input.c +++ b/src/gui/gui-input.c @@ -1142,7 +1142,7 @@ gui_input_delete_line (struct t_gui_buffer *buffer) end_of_line = (char *)utf8_end_of_line (start); size_deleted = end_of_line - beginning_of_line; - length_deleted = utf8_strnlen (start, size_deleted); + length_deleted = utf8_strnlen (beginning_of_line, size_deleted); memmove (beginning_of_line, end_of_line, strlen (end_of_line)); |