Fix allocator sizeof operand mismatch librz/io/p/io_winedbg.c
This commit is contained in:
parent
b3f76b44bd
commit
ffc0d19a33
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) {
|
|||
eprintf("pid : show current process id\n");
|
||||
} else if (!strncmp(cmd, "dr8", 3)) {
|
||||
struct winedbg_x86_32 r = regState();
|
||||
ut8 *arena = (ut8 *)calloc(3, sizeof(struct winedbg_x86_32));
|
||||
struct winedbg_x86_32 *arena = RZ_NEWS0(struct winedbg_x86_32, 3);
|
||||
if (arena) {
|
||||
rz_hex_bin2str((ut8 *)&r, sizeof(r), (char *)arena);
|
||||
return (char *)arena;
|
||||
|
|
|
|||
Loading…
Reference in a new issue