From 39f2b2f7b9d9aebec3f2544cd5eedf653d2eeb8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Tue, 2 Aug 2022 20:50:48 +0200 Subject: [PATCH] ruby: fix function hdata_get_string --- ChangeLog.adoc | 1 + src/plugins/ruby/weechat-ruby-api.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index de6127812..7f673e0da 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -34,6 +34,7 @@ Bug fixes:: * javascript: fix return of long value in functions infolist_time, hdata_long and hdata_time * php: fix function hdata_compare * relay: fix parsing of IRC messages received from clients (issue #1796) + * ruby: fix function hdata_get_string * scripts: fix issue with year ≥ 2038 in functions infolist_new_var_time, print_date_tags and print_y_date_tags (plugins: python/lua/tcl/guile/javascript) * scripts: fix issue with long interval in function hook_timer (plugins: python/ruby/lua/tcl/guile/javascript/php) * xfer: fix crash when closing DCC chat buffer diff --git a/src/plugins/ruby/weechat-ruby-api.c b/src/plugins/ruby/weechat-ruby-api.c index efe097cc5..80acd781d 100644 --- a/src/plugins/ruby/weechat-ruby-api.c +++ b/src/plugins/ruby/weechat-ruby-api.c @@ -6352,8 +6352,7 @@ weechat_ruby_api_hdata_get_string (VALUE class, VALUE hdata, VALUE property) c_hdata = StringValuePtr (hdata); c_property = StringValuePtr (property); - result = weechat_hdata_get_var_type_string (API_STR2PTR(c_hdata), - c_property); + result = weechat_hdata_get_string (API_STR2PTR(c_hdata), c_property); API_RETURN_STRING(result); }