diff options
-rw-r--r-- | src/gui/curses/gui-display.c | 2 | ||||
-rw-r--r-- | weechat/src/gui/curses/gui-display.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/curses/gui-display.c b/src/gui/curses/gui-display.c index f3dd99bed..079aab340 100644 --- a/src/gui/curses/gui-display.c +++ b/src/gui/curses/gui-display.c @@ -1328,7 +1328,7 @@ gui_draw_buffer_status (t_gui_buffer *buffer, int erase) mvwprintw (ptr_win->win_status, 0, x, "%s", string); else { - snprintf (format_more, sizeof (format_more) - 1, "%%-%ds", strlen (string)); + snprintf (format_more, sizeof (format_more) - 1, "%%-%ds", (int)(strlen (string))); mvwprintw (ptr_win->win_status, 0, x, format_more, " "); } if (gui_buffer_has_nicklist (ptr_win->buffer)) diff --git a/weechat/src/gui/curses/gui-display.c b/weechat/src/gui/curses/gui-display.c index f3dd99bed..079aab340 100644 --- a/weechat/src/gui/curses/gui-display.c +++ b/weechat/src/gui/curses/gui-display.c @@ -1328,7 +1328,7 @@ gui_draw_buffer_status (t_gui_buffer *buffer, int erase) mvwprintw (ptr_win->win_status, 0, x, "%s", string); else { - snprintf (format_more, sizeof (format_more) - 1, "%%-%ds", strlen (string)); + snprintf (format_more, sizeof (format_more) - 1, "%%-%ds", (int)(strlen (string))); mvwprintw (ptr_win->win_status, 0, x, format_more, " "); } if (gui_buffer_has_nicklist (ptr_win->buffer)) |