1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

ruby: fix crash in function hdata_move

This commit is contained in:
Sebastien Helleu
2013-04-20 11:05:14 +02:00
parent fda70ec57d
commit 4cf6628d85
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -87,6 +87,7 @@ Version 0.4.1 (under dev!)
* rmodifier: rename default rmodifier "nickserv" to "command_auth" (with new
modifier "irc_command_auth"), add default rmodifier "message_auth" (modifier
"irc_message_auth")
* ruby: fix crash in function hdata_move
* ruby: fix crash with Ruby 2.0: use one array for the last 6 arguments of
function config_new_option (bug #31050)
* script: fix compilation on GNU/Hurd (patch #7977)
+3 -3
View File
@@ -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);
}