From fda70ec57df381245404f164d9ae46f3a863f79a Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 20 Apr 2013 11:04:17 +0200 Subject: [PATCH] guile: fix crash in function hdata_move --- ChangeLog | 3 ++- src/plugins/guile/weechat-guile-api.c | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3d796e60e..52f27d888 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ WeeChat ChangeLog ================= Sébastien Helleu -v0.4.1-dev, 2013-04-18 +v0.4.1-dev, 2013-04-20 This document lists all changes for each version. @@ -44,6 +44,7 @@ Version 0.4.1 (under dev!) * aspell: add completion "aspell_dicts" (list of aspell installed dictionaries) * aspell: add info "aspell_dict" (dictionaries used on a buffer) * aspell: optimization on spellers to improve speed (save state by buffer) +* guile: fix crash in function hdata_move * guile: fix arguments given to callbacks (separate arguments instead of one list with arguments inside), guile >= 2.0 is now required (bug #38350) * guile: fix crash on calls to callbacks during load of script (bug #38343) diff --git a/src/plugins/guile/weechat-guile-api.c b/src/plugins/guile/weechat-guile-api.c index 92ccd561c..b01b31e50 100644 --- a/src/plugins/guile/weechat-guile-api.c +++ b/src/plugins/guile/weechat-guile-api.c @@ -4256,9 +4256,9 @@ weechat_guile_api_hdata_move (SCM hdata, SCM pointer, SCM count) || !scm_is_integer (count)) API_WRONG_ARGS(API_RETURN_EMPTY); - result = weechat_hdata_move (API_STR2PTR(API_SCM_TO_STRING(hdata)), - API_STR2PTR(API_SCM_TO_STRING(pointer)), - scm_to_int (count)); + result = API_PTR2STR(weechat_hdata_move (API_STR2PTR(API_SCM_TO_STRING(hdata)), + API_STR2PTR(API_SCM_TO_STRING(pointer)), + scm_to_int (count))); API_RETURN_STRING_FREE(result); }