From b4dc65feb42e3040a9954e1715b7537a20319d7d Mon Sep 17 00:00:00 2001 From: pancake Date: Tue, 19 Jan 2021 04:07:23 +0100 Subject: [PATCH] Fix wrong variable name when using ESP as base register ##disasm --- libr/core/disasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libr/core/disasm.c b/libr/core/disasm.c index 677ce2079c370..782197cd25413 100644 --- a/libr/core/disasm.c +++ b/libr/core/disasm.c @@ -1635,7 +1635,7 @@ static ut32 tmp_get_realsize (RAnalFunction *f) { } static void ds_show_functions_argvar(RDisasmState *ds, RAnalFunction *fcn, RAnalVar *var, const char *base, bool is_var, char sign) { - int delta = var->kind == 'b' ? R_ABS (var->delta + fcn->bp_off) : R_ABS (var->delta); + int delta = var->kind == 'b' ? R_ABS (var->delta + fcn->bp_off) : R_ABS (var->delta) - 8; const char *pfx = is_var ? "var" : "arg"; char *constr = r_anal_var_get_constraints_readable (var); r_cons_printf ("%s%s %s%s%s%s %s%s%s%s@ %s%c0x%x", COLOR_ARG (ds, color_func_var), pfx,