mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 18:23:13 +02:00
core: fix compiler warnings on calls to snprintf
This commit is contained in:
@@ -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)
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user