Skip to content

Commit

Permalink
core/canalysis.c: fix the ignored parameter in rz_core_analysis_funct…
Browse files Browse the repository at this point in the history
…ion_signature_editor
  • Loading branch information
PeiweiHu committed May 9, 2024
1 parent d78fee3 commit 6926508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions librz/core/canalysis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6926508

Please sign in to comment.