mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 12:56:37 +02:00
core: replace constant by sizeof in a call to snprintf
This commit is contained in:
@@ -2019,7 +2019,8 @@ gui_chat_draw (struct t_gui_buffer *buffer, int clear_chat)
|
||||
|
||||
if (clear_chat)
|
||||
{
|
||||
snprintf (format_empty, 32, "%%-%ds", ptr_win->win_chat_width);
|
||||
snprintf (format_empty, sizeof (format_empty),
|
||||
"%%-%ds", ptr_win->win_chat_width);
|
||||
for (i = 0; i < ptr_win->win_chat_height; i++)
|
||||
{
|
||||
mvwprintw (GUI_WINDOW_OBJECTS(ptr_win)->win_chat, i, 0,
|
||||
|
||||
Reference in New Issue
Block a user