From 345bdddf62ab12499c3b7abfdb89ae080d227224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 22 Nov 2020 15:00:19 +0100 Subject: [PATCH] script: increase buffer size in function script_buffer_detail_label This fixes a compiler warning complaining about a too small buffer for snprintf, even if this should never happen. --- src/plugins/script/script-buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/script/script-buffer.c b/src/plugins/script/script-buffer.c index cd2897818..5dabd24b3 100644 --- a/src/plugins/script/script-buffer.c +++ b/src/plugins/script/script-buffer.c @@ -341,7 +341,7 @@ script_buffer_display_line_script (int line, struct t_script_repo *script) const char * script_buffer_detail_label (const char *text, int max_length) { - char str_format[16]; + char str_format[128]; static char result[1024]; int num_spaces;