1
0
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:
Sebastien Helleu
2014-02-28 11:38:23 +01:00
parent 0084eaa193
commit 7213fe5826
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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);