summaryrefslogtreecommitdiff
path: root/src/gui/curses
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-05-29 07:20:15 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-05-29 07:20:15 +0000
commit7c63a73999d68b53e7c49521d98881d4d650d6a7 (patch)
treee0d0c349cf69e88740d6e832e94e035b9d57bc93 /src/gui/curses
parent2ab3467c05faf7e9f2fd8daef5e4bbafd4e0c51a (diff)
downloadweechat-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.c2
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))