summaryrefslogtreecommitdiff
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
parent0084eaa193ac440b9a251d968ea19fbbcea9506e (diff)
downloadweechat-7213fe58261bd8c8eab253ab2be2285b59d33f8f.zip
scripts: fix size used in some snprintf
-rw-r--r--src/plugins/guile/weechat-guile-api.c2
-rw-r--r--src/plugins/lua/weechat-lua-api.c2
-rw-r--r--src/plugins/perl/weechat-perl-api.c2
-rw-r--r--src/plugins/python/weechat-python-api.c2
-rw-r--r--src/plugins/ruby/weechat-ruby-api.c2
-rw-r--r--src/plugins/tcl/weechat-tcl-api.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/guile/weechat-guile-api.c b/src/plugins/guile/weechat-guile-api.c
index f32a166f3..1a1220e0a 100644
--- a/src/plugins/guile/weechat-guile-api.c
+++ b/src/plugins/guile/weechat-guile-api.c
@@ -2292,7 +2292,7 @@ weechat_guile_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);
diff --git a/src/plugins/lua/weechat-lua-api.c b/src/plugins/lua/weechat-lua-api.c
index 3d1ad927e..d7f841c21 100644
--- a/src/plugins/lua/weechat-lua-api.c
+++ b/src/plugins/lua/weechat-lua-api.c
@@ -2488,7 +2488,7 @@ weechat_lua_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);
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);
diff --git a/src/plugins/python/weechat-python-api.c b/src/plugins/python/weechat-python-api.c
index 9abc3c2d9..ee0dfa4be 100644
--- a/src/plugins/python/weechat-python-api.c
+++ b/src/plugins/python/weechat-python-api.c
@@ -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);
diff --git a/src/plugins/ruby/weechat-ruby-api.c b/src/plugins/ruby/weechat-ruby-api.c
index eab74e7d9..6f4f332a7 100644
--- a/src/plugins/ruby/weechat-ruby-api.c
+++ b/src/plugins/ruby/weechat-ruby-api.c
@@ -2840,7 +2840,7 @@ weechat_ruby_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);
diff --git a/src/plugins/tcl/weechat-tcl-api.c b/src/plugins/tcl/weechat-tcl-api.c
index ae7d4d40e..cf79da7f8 100644
--- a/src/plugins/tcl/weechat-tcl-api.c
+++ b/src/plugins/tcl/weechat-tcl-api.c
@@ -2756,7 +2756,7 @@ weechat_tcl_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);