Skip to content

Commit

Permalink
Fix increment in pxrj command (cmd_print.c) (#10222)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcasal authored and radare committed May 31, 2018
1 parent ad5c08c commit f97d0b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libr/core/cmd_print.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f97d0b2

Please sign in to comment.