1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-24 03:46:39 +02:00

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.
This commit is contained in:
Sébastien Helleu
2020-11-22 15:00:19 +01:00
parent d1cad18f01
commit 345bdddf62
+1 -1
View File
@@ -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;