summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-07-13 21:24:40 +0200
committerSébastien Helleu <flashcode@flashtux.org>2018-07-13 21:24:40 +0200
commita205886d7a8f7320f9b1f482f9f3bfc913269b05 (patch)
tree572d16d565e606656baaa9ccc701ffb2ee8b641a
parenta8faa69610c8da3436c8f6191d951ee2e037b8bb (diff)
downloadweechat-a205886d7a8f7320f9b1f482f9f3bfc913269b05.zip
core: fix compiler warnings on calls to snprintf
-rw-r--r--src/gui/curses/gui-curses-main.c2
-rw-r--r--src/gui/gui-color.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-main.c b/src/gui/curses/gui-curses-main.c
index 7355f7dee..0d4cabbdb 100644
--- a/src/gui/curses/gui-curses-main.c
+++ b/src/gui/curses/gui-curses-main.c
@@ -281,7 +281,7 @@ gui_main_signal_sigwinch ()
void
gui_main_handle_quit_signals ()
{
- char str_signal[64], str_weechat_signal[64];
+ char str_signal[32], str_weechat_signal[64];
int rc;
switch (weechat_quit_signal)
diff --git a/src/gui/gui-color.c b/src/gui/gui-color.c
index b20d704f4..f92f3f052 100644
--- a/src/gui/gui-color.c
+++ b/src/gui/gui-color.c
@@ -240,7 +240,7 @@ const char *
gui_color_get_custom (const char *color_name)
{
int fg, bg, fg_term, bg_term, term_color;
- static char color[32][32];
+ static char color[32][96];
static int index_color = 0;
char color_fg[32], color_bg[32];
char *pos_delim, *str_fg, *pos_bg, *error, *color_attr;