From: Andreas Schwab Date: Thu, 19 Jul 2018 09:54:59 +0000 (+0200) Subject: Fix typo in riscv_register_info X-Git-Tag: elfutils-0.174~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18c139b596004931c3776f94efab58ca499b0808;p=thirdparty%2Felfutils.git Fix typo in riscv_register_info Signed-off-by: Andreas Schwab --- diff --git a/backends/ChangeLog b/backends/ChangeLog index bf31072e3..79370b6f8 100644 --- a/backends/ChangeLog +++ b/backends/ChangeLog @@ -1,3 +1,7 @@ +2018-07-19 Andreas Schwab + + * riscv_regs.c (riscv_register_info): Fix typo. + 2018-07-17 Andreas Schwab * Makefile.am (riscv_SRCS): Add riscv_corenote.c. diff --git a/backends/riscv_regs.c b/backends/riscv_regs.c index 7b577ca0c..d5961ad50 100644 --- a/backends/riscv_regs.c +++ b/backends/riscv_regs.c @@ -106,7 +106,7 @@ riscv_register_info (Ebl *ebl, int regno, char *name, size_t namelen, case 26 ... 27: name[0] = 's'; name[1] = '1'; - name[1] = regno - 26 + '0'; + name[2] = regno - 26 + '0'; namelen = 3; break;