diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2014-02-27 09:44:59 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2014-02-27 09:44:59 +0100 |
commit | 0084eaa193ac440b9a251d968ea19fbbcea9506e (patch) | |
tree | 27740992dd05a84054644819b04de2950d3c3547 /src/gui | |
parent | c8cd6c4639ead6c650de4048726cf0bd4a8475ca (diff) | |
download | weechat-0084eaa193ac440b9a251d968ea19fbbcea9506e.zip |
core: replace constant by sizeof in a call to snprintf
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/curses/gui-curses-chat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c index b84a61341..2a4dd9e75 100644 --- a/src/gui/curses/gui-curses-chat.c +++ b/src/gui/curses/gui-curses-chat.c @@ -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, |