diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-05-29 07:20:15 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-05-29 07:20:15 +0000 |
commit | 7c63a73999d68b53e7c49521d98881d4d650d6a7 (patch) | |
tree | e0d0c349cf69e88740d6e832e94e035b9d57bc93 /src/gui/curses | |
parent | 2ab3467c05faf7e9f2fd8daef5e4bbafd4e0c51a (diff) | |
download | weechat-7c63a73999d68b53e7c49521d98881d4d650d6a7.zip |
Added cast to prevent problems with AMD64 where size_t is not int
Diffstat (limited to 'src/gui/curses')
-rw-r--r-- | src/gui/curses/gui-display.c | 2 |
1 files changed, 1 insertions, 1 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)) |