From 6926508e1b68afad720d400c960c7c7bb15ebc30 Mon Sep 17 00:00:00 2001 From: Peiwei Hu Date: Thu, 9 May 2024 11:13:18 +0800 Subject: [PATCH] core/canalysis.c: fix the ignored parameter in rz_core_analysis_function_signature_editor --- librz/core/canalysis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librz/core/canalysis.c b/librz/core/canalysis.c index 023d300c867..dc6821832b9 100644 --- a/librz/core/canalysis.c +++ b/librz/core/canalysis.c @@ -4647,9 +4647,9 @@ RZ_IPI bool rz_core_analysis_function_set_signature(RzCore *core, RzAnalysisFunc } RZ_IPI void rz_core_analysis_function_signature_editor(RzCore *core, ut64 addr) { - RzAnalysisFunction *f = rz_analysis_get_fcn_in(core->analysis, core->offset, -1); + RzAnalysisFunction *f = rz_analysis_get_fcn_in(core->analysis, addr, -1); if (!f) { - RZ_LOG_ERROR("core: cannot find function in 0x%08" PFMT64x "\n", core->offset); + RZ_LOG_ERROR("core: cannot find function in 0x%08" PFMT64x "\n", addr); return; }