diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-11-22 15:00:19 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-11-22 15:00:19 +0100 |
commit | 345bdddf62ab12499c3b7abfdb89ae080d227224 (patch) | |
tree | 80857124e33566cc1cae71442e1c4b19258250b1 /src | |
parent | d1cad18f010b3e6f7c0e1ced22b48411b3e616f3 (diff) | |
download | weechat-345bdddf62ab12499c3b7abfdb89ae080d227224.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/script/script-buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |