mirror of
https://github.com/weechat/weechat.git
synced 2026-06-19 09:34:47 +02:00
scripts: fix size used in some snprintf
This commit is contained in:
@@ -2430,7 +2430,7 @@ weechat_python_api_hook_print_cb (void *data, struct t_gui_buffer *buffer,
|
||||
|
||||
if (script_callback && script_callback->function && script_callback->function[0])
|
||||
{
|
||||
snprintf (timebuffer, sizeof (timebuffer) - 1, "%ld", (long int)date);
|
||||
snprintf (timebuffer, sizeof (timebuffer), "%ld", (long int)date);
|
||||
|
||||
func_argv[0] = (script_callback->data) ? script_callback->data : empty_arg;
|
||||
func_argv[1] = API_PTR2STR(buffer);
|
||||
|
||||
Reference in New Issue
Block a user