diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-01-07 19:32:57 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-01-07 19:32:57 +0100 |
commit | 64d610c0d7572425f556c5e1dbbe65435a5569ad (patch) | |
tree | b1d055a2a1e3770f4801df6964dfaae8c37f677a /src | |
parent | be7002b70db9ef104b5fb141939c4bfbe4e7de6b (diff) | |
download | weechat-64d610c0d7572425f556c5e1dbbe65435a5569ad.zip |
ruby: fix buffer overflow
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/ruby/weechat-ruby.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/ruby/weechat-ruby.c b/src/plugins/ruby/weechat-ruby.c index 1f928c1e5..64242e3b8 100644 --- a/src/plugins/ruby/weechat-ruby.c +++ b/src/plugins/ruby/weechat-ruby.c @@ -569,7 +569,7 @@ struct t_plugin_script * weechat_ruby_load (const char *filename, const char *code) { char modname[64]; - VALUE ruby_retcode, err, argv[1]; + VALUE ruby_retcode, err, argv[2]; int ruby_error; struct stat buf; |