diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-04-20 11:05:14 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-04-20 11:05:14 +0200 |
commit | 4cf6628d85ff4cef0624fb2f8e5fa54c9de6a3e4 (patch) | |
tree | f8fed7db1c54da174669350bc09fc8f14ca04e2b /src | |
parent | fda70ec57df381245404f164d9ae46f3a863f79a (diff) | |
download | weechat-4cf6628d85ff4cef0624fb2f8e5fa54c9de6a3e4.zip |
ruby: fix crash in function hdata_move
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/ruby/weechat-ruby-api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/ruby/weechat-ruby-api.c b/src/plugins/ruby/weechat-ruby-api.c index a2acc67c3..aaefeaaf1 100644 --- a/src/plugins/ruby/weechat-ruby-api.c +++ b/src/plugins/ruby/weechat-ruby-api.c @@ -5437,9 +5437,9 @@ weechat_ruby_api_hdata_move (VALUE class, VALUE hdata, VALUE pointer, c_pointer = StringValuePtr (pointer); c_count = FIX2INT (count); - result = weechat_hdata_move (API_STR2PTR(c_hdata), - API_STR2PTR(c_pointer), - c_count); + result = API_PTR2STR(weechat_hdata_move (API_STR2PTR(c_hdata), + API_STR2PTR(c_pointer), + c_count)); API_RETURN_STRING_FREE(result); } |