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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user