Use %zx specifier in patty_print_hexdump()
This commit is contained in:
parent
b05202e9bf
commit
c359682928
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ int patty_print_hexdump(FILE *fh, void *data, size_t len) {
|
||||||
for (i=0; i<len; i+=16) {
|
for (i=0; i<len; i+=16) {
|
||||||
size_t x;
|
size_t x;
|
||||||
|
|
||||||
if (fprintf(fh, "%08lx:", i) < 0) {
|
if (fprintf(fh, "%08zx:", i) < 0) {
|
||||||
goto error_io;
|
goto error_io;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue