From 7d654c358ceb227acf0bcc2de72708362585fc81 Mon Sep 17 00:00:00 2001 From: dungcoi Date: Wed, 8 Jun 2016 00:00:06 +0700 Subject: [PATCH] fix typo fix typo build_arg_string: rdx -> rcx I think that here could be used marco to restrict duplicate code --- trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trace.c b/trace.c index 7609fec..583bd75 100644 --- a/trace.c +++ b/trace.c @@ -318,7 +318,7 @@ char * build_arg_string(handle_t *h, branch_site_t *branch) free(ptr_range); strcat(str, ", "); strcat(str, args[2]); - sprintf(tmp, "0x%llx", regs.rdx); + sprintf(tmp, "0x%llx", regs.rcx); ptr_range = get_pointer_range_str(h, regs.rcx); if (ptr_range == NULL) args[3] = xstrdup(tmp);