Skip to content

Commit

Permalink
i
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Nov 29, 2024
1 parent e5d0ec5 commit 1cd61f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libr/arch/p/x86/plugin_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,12 @@ static const char *reg32_to_name(ut8 reg) {

static inline bool get64from32(const char *s, char *out, size_t outsz) {
if (*s == 'e') {
r_str_ncpy (out, "r%s", s + 1, outsz);
snprintf (out, outsz, "r%s", s + 1);
return true;
}
if (*s == 'r' && isdigit (s[1])) {
if (s[2] == 'd' || (s[2] != 0 && isdigit(s[2]) && s[3] == 'd')) {
r_str_ncpy (out, "r%d", atoi (s + 1), outsz);
snprintf (out, outsz, "r%d", atoi (s + 1));
return true;
}
}
Expand Down

0 comments on commit 1cd61f4

Please sign in to comment.