summaryrefslogtreecommitdiff
path: root/src/gui/gui-bar-item.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-11-22 14:56:55 +0100
committerSébastien Helleu <flashcode@flashtux.org>2020-11-22 14:56:55 +0100
commita8dd0e133719593206d19bbca4d94a5d5070f0d7 (patch)
tree97a0339656f600f11b6530abf54f2abf743b453e /src/gui/gui-bar-item.c
parent070eb3f7b00f7d6ad14cd6f1542b2d6bae1ddb42 (diff)
downloadweechat-a8dd0e133719593206d19bbca4d94a5d5070f0d7.zip
core: increase buffer size in function gui_bar_item_time_cb
This fixes a compiler warning complaining about a too small buffer for snprintf, even if this should never happen.
Diffstat (limited to 'src/gui/gui-bar-item.c')
-rw-r--r--src/gui/gui-bar-item.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui-bar-item.c b/src/gui/gui-bar-item.c
index 09de97d02..2efa2c868 100644
--- a/src/gui/gui-bar-item.c
+++ b/src/gui/gui-bar-item.c
@@ -990,7 +990,7 @@ gui_bar_item_time_cb (const void *pointer, void *data,
struct t_gui_buffer *buffer,
struct t_hashtable *extra_info)
{
- char text_time[128], text_time2[128];
+ char text_time[128], text_time2[256];
/* make C compiler happy */
(void) pointer;