summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-11-22 14:59:06 +0100
committerSébastien Helleu <flashcode@flashtux.org>2020-11-22 14:59:06 +0100
commitd1cad18f010b3e6f7c0e1ced22b48411b3e616f3 (patch)
treebf2dc49cd75699298226642ed5d06363ee4743ae
parenta8dd0e133719593206d19bbca4d94a5d5070f0d7 (diff)
downloadweechat-d1cad18f010b3e6f7c0e1ced22b48411b3e616f3.zip
core: increase buffer size in function plugin_api_info_uptime_cb
This fixes a compiler warning complaining about a too small buffer for snprintf, even if this should never happen.
-rw-r--r--src/plugins/plugin-api-info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/plugin-api-info.c b/src/plugins/plugin-api-info.c
index b37fcc44e..21b373c42 100644
--- a/src/plugins/plugin-api-info.c
+++ b/src/plugins/plugin-api-info.c
@@ -723,7 +723,7 @@ plugin_api_info_uptime_cb (const void *pointer, void *data,
const char *info_name,
const char *arguments)
{
- char value[32];
+ char value[128];
time_t total_seconds;
int days, hours, minutes, seconds;