Commit 22844839cb11a2d2465d9c5b6754c314f1849052

ckolivas 2014-07-23T13:18:11

Fix hexdump on 64bit

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/hexdump.c b/hexdump.c
index eb24deb..80b8c2d 100644
--- a/hexdump.c
+++ b/hexdump.c
@@ -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) {