summaryrefslogtreecommitdiff
path: root/src/plugins/perl
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-02-28 11:38:23 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-02-28 11:38:23 +0100
commit7213fe58261bd8c8eab253ab2be2285b59d33f8f (patch)
treefe754849ffd856027e44566e8052d1079de87d94 /src/plugins/perl
parent0084eaa193ac440b9a251d968ea19fbbcea9506e (diff)
downloadweechat-7213fe58261bd8c8eab253ab2be2285b59d33f8f.zip
scripts: fix size used in some snprintf
Diffstat (limited to 'src/plugins/perl')
-rw-r--r--src/plugins/perl/weechat-perl-api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/perl/weechat-perl-api.c b/src/plugins/perl/weechat-perl-api.c
index 83ba39a2b..6026cfd90 100644
--- a/src/plugins/perl/weechat-perl-api.c
+++ b/src/plugins/perl/weechat-perl-api.c
@@ -2324,7 +2324,7 @@ weechat_perl_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);