Fix allocator sizeof operand mismatch librz/io/p/io_winedbg.c

This commit is contained in:
Alexis Ehret 2021-02-06 18:14:42 +01:00 committed by Riccardo Schirone
parent b3f76b44bd
commit ffc0d19a33

View file

@ -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;