Skip to content

Commit

Permalink
Fix hexdump on 64bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ckolivas committed Jul 23, 2014
1 parent 871cc06 commit 2284483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hexdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static char nibble[] = {
static void hexdump(const uint8_t *p, unsigned int len)
{
unsigned int i, addr;
unsigned int wordlen = sizeof(void*);
unsigned int wordlen = sizeof(unsigned int);
unsigned char v, line[BYTES_PER_LINE * 5];

for (addr = 0; addr < len; addr += BYTES_PER_LINE) {
Expand Down

0 comments on commit 2284483

Please sign in to comment.