mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 05:40:10 +00:00
wrong parenthesis on sizeof for the gdb xml code
This commit is contained in:
parent
ee4f42d13e
commit
b44ab3f9ef
@ -427,7 +427,7 @@ static int gdbr_parse_target_xml(libgdbr_t *g, char *xml_data, ut64 len) {
|
||||
eprintf ("Register name too long: %s\n", regname);
|
||||
}
|
||||
strncpy (arch_regs[num_regs].name, regname,
|
||||
sizeof (*arch_regs[num_regs].name - 1));
|
||||
sizeof (arch_regs[num_regs].name) - 1);
|
||||
arch_regs[num_regs].name[sizeof (arch_regs[num_regs].name) - 1] = '\0';
|
||||
arch_regs[num_regs].offset = reg_off;
|
||||
arch_regs[num_regs].size = reg_sz / 8;
|
||||
|
Loading…
Reference in New Issue
Block a user