Fix increment in pxrj command (cmd_print.c) (#10222)

This commit is contained in:
fcasal 2018-05-31 01:32:57 +01:00 committed by radare
parent ad5c08cbe0
commit f97d0b288d

View File

@ -5133,7 +5133,8 @@ static int cmd_print(void *data, const char *input) {
const char *comma = "";
const ut8 *buf = core->block;
int withref = 0;
for (i = 0; i < core->blocksize; i += (base / 4)) {
const int wordsize = base / 8;
for (i = 0; i < core->blocksize; i += wordsize) {
ut64 addr = core->offset + i;
ut64 *foo = (ut64 *) (buf + i);
ut64 val = *foo;